AuthenticationException
class AuthenticationException extends Exception
Properties
| protected array | $guards | All of the guards that were checked. |
|
| protected string|null | $redirectTo | The path the user should be redirected to. |
|
| static protected null|callable | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
Methods
__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
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
static void
flushState()
Flush all static state.
Details
at line 32
__construct(string $message = 'Unauthenticated.', array $guards = [], string|null $redirectTo = null)
Create a new authentication exception.
at line 43
array
guards()
Get the guards that were checked.
at line 51
string|null
redirectTo(Request $request)
Get the path the user should be redirected to.
at line 70
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
Boot-only. The callback persists in a static property for the worker lifetime and runs on every unauthenticated exception.
at line 78
static void
flushState()
Flush all static state.