3 namespace App\Http\Middleware;
5 use Illuminate\Auth\Middleware\Authenticate as Middleware;
7 class Authenticate extends Middleware
10 * Get the path the user should be redirected to when they are not authenticated.
12 * @param \Illuminate\Http\Request $request
15 protected function redirectTo($request)
17 if (! $request->expectsJson()) {
18 return route('login');