class RedirectIfAuthenticated (View source)
| static protected callable|null | $redirectToCallback | The callback that should be used to generate the authentication redirect path. |
| Response | handle(Request $request, Closure $next, string ...$guards)
Handle an incoming request. | |
| 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. |
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Auth/Middleware/RedirectIfAuthenticated.html