RedirectIfAuthenticated
class RedirectIfAuthenticated (View source)
Properties
| static protected callable|null | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
Methods
static string
using(string $guard, string ...$others)
Specify the guards for the middleware.
string|null
redirectTo(Request $request)
Get the path the user should be redirected to when they are authenticated.
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.
Details
static string
using(string $guard, string ...$others)
Specify the guards for the middleware.
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.