Follow laravel upgrade guide

This commit is contained in:
Jonny Barnes 2020-10-19 19:41:50 +01:00
parent 57186c3e2e
commit ed54446f87
37 changed files with 412 additions and 259 deletions

View file

@ -0,0 +1,20 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Middleware\TrustHosts as Middleware;
class TrustHosts extends Middleware
{
/**
* Get the host patterns that should be trusted.
*
* @return array
*/
public function hosts()
{
return [
$this->allSubdomainsOfApplicationUrl(),
];
}
}