diff options
Diffstat (limited to 'app/Http/Middleware')
-rw-r--r-- | app/Http/Middleware/CheckForMaintenanceMode.php | 17 | ||||
-rw-r--r--[-rwxr-xr-x] | app/Http/Middleware/EncryptCookies.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | app/Http/Middleware/RedirectIfAuthenticated.php | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | app/Http/Middleware/TrimStrings.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | app/Http/Middleware/TrustProxies.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | app/Http/Middleware/VerifyCsrfToken.php | 0 |
6 files changed, 18 insertions, 1 deletions
diff --git a/app/Http/Middleware/CheckForMaintenanceMode.php b/app/Http/Middleware/CheckForMaintenanceMode.php new file mode 100644 index 0000000..35b9824 --- /dev/null +++ b/app/Http/Middleware/CheckForMaintenanceMode.php @@ -0,0 +1,17 @@ +<?php + +namespace App\Http\Middleware; + +use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Middleware; + +class CheckForMaintenanceMode extends Middleware +{ + /** + * The URIs that should be reachable while maintenance mode is enabled. + * + * @var array + */ + protected $except = [ + // + ]; +} diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php index 033136a..033136a 100755..100644 --- a/app/Http/Middleware/EncryptCookies.php +++ b/app/Http/Middleware/EncryptCookies.php diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index e27860e..e4cec9c 100755..100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -18,7 +18,7 @@ class RedirectIfAuthenticated public function handle($request, Closure $next, $guard = null) { if (Auth::guard($guard)->check()) { - return redirect('/'); + return redirect('/home'); } return $next($request); diff --git a/app/Http/Middleware/TrimStrings.php b/app/Http/Middleware/TrimStrings.php index 5a50e7b..5a50e7b 100755..100644 --- a/app/Http/Middleware/TrimStrings.php +++ b/app/Http/Middleware/TrimStrings.php diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.php index 7daf51f..7daf51f 100755..100644 --- a/app/Http/Middleware/TrustProxies.php +++ b/app/Http/Middleware/TrustProxies.php diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php index 0c13b85..0c13b85 100755..100644 --- a/app/Http/Middleware/VerifyCsrfToken.php +++ b/app/Http/Middleware/VerifyCsrfToken.php |