RedirectIfAuthenticated
class RedirectIfAuthenticated (View source)
Properties
| static protected callable|null | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
Methods
Get the path the user should be redirected to when they are authenticated.
Get the default URI the user should be redirected to when they are authenticated.
Specify the callback that should be used to generate the redirect path.
Details
protected string|null
redirectTo(Request $request)
Get the path the user should be redirected to when they are authenticated.
protected string
defaultRedirectUri()
Get the default URI the user should be redirected to when they are authenticated.
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.