This commit is contained in:
Olusesan Ameye
2020-09-07 10:33:03 -04:00
parent c2d2897ad8
commit 4c6d4d98f0
401 changed files with 47976 additions and 1 deletions
@@ -0,0 +1,21 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string|null
*/
protected function redirectTo($request)
{
if (! $request->expectsJson()) {
return route('login');
}
}
}