Blame view
app/Http/Middleware/Authenticate.php
474 Bytes
242debab8 Первый коммит в п... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<?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()) { |
9a5d84dc0 Авторизация и рег... |
18 |
return route('auth.login'); |
242debab8 Первый коммит в п... |
19 20 21 |
} } } |