class AuthenticationException extends Exception (View source)
| protected array | $guards | All of the guards that were checked. | |
| protected string|null | $redirectTo | The path the user should be redirected to. | |
| static protected callable | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
| void | __construct(string $message = 'Unauthenticated.', array $guards = [], string|null $redirectTo = null)
Create a new authentication exception. | |
| array | guards()
Get the guards that were checked. | |
| string|null | redirectTo(Request $request)
Get the path the user should be redirected to. | |
| static void | redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path. |
Create a new authentication exception.
Get the guards that were checked.
Get the path the user should be redirected to.
Specify the callback that should be used to generate the redirect path.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Auth/AuthenticationException.html