laravel / 10 / api / 10.x / illuminate / auth / authenticationexception.html

AuthenticationException

class AuthenticationException extends Exception (View source)

Properties

protected array $guards

All of the guards that were checked.

protected string|null $redirectTo

The path the user should be redirected to.

Methods

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()

Get the path the user should be redirected to.

Details

void __construct(string $message = 'Unauthenticated.', array $guards = [], string|null $redirectTo = null)

Create a new authentication exception.

Parameters

string $message
array $guards
string|null $redirectTo

Return Value

void

array guards()

Get the guards that were checked.

Return Value

array

string|null redirectTo()

Get the path the user should be redirected to.

Return Value

string|null

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Auth/AuthenticationException.html