Blame view
app/Http/Middleware/Authenticate.php
474 Bytes
b80175387 Начальный проект ... |
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()) { |
c5118e5f3 Админка сайта - в... |
18 |
return route('auth.login'); |
b80175387 Начальный проект ... |
19 20 21 |
} } } |