Unused middleware classes removed

This commit is contained in:
2022-05-19 12:41:33 +02:00
parent 4b77705927
commit 1119840656
10 changed files with 37 additions and 122 deletions

View File

@@ -6,16 +6,14 @@ 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)
protected function redirectTo($request): ?string
{
if (! $request->expectsJson()) {
return route('admin.auth.login');
}
return null;
}
}