<?php namespace App\Http\Middleware; use Illuminate\Auth\Middleware\Authenticate as Middleware; use Illuminate\Http\Request; class Authenticate extends Middleware { /** * Get the path the user should be redirected to when they are not authenticated. */ protected function redirectTo(Request $request): ?string { return $request->expectsJson() ? null : route('login'); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Authenticate.php | File | 409 B | 0644 |
|
EncryptCookies.php | File | 307 B | 0644 |
|
PreventRequestsDuringMaintenance.php | File | 366 B | 0644 |
|
RedirectIfAuthenticated.php | File | 760 B | 0644 |
|
TrimStrings.php | File | 381 B | 0644 |
|
TrustHosts.php | File | 379 B | 0644 |
|
TrustProxies.php | File | 649 B | 0644 |
|
ValidateSignature.php | File | 460 B | 0644 |
|
VerifyCsrfToken.php | File | 320 B | 0644 |
|