Authenticate
class Authenticate implements AuthenticatesRequests (View source)
Properties
protected Factory | $auth | The authentication factory instance. |
|
static protected callable | $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.
void
authenticate(Request $request, array $guards)
Determine if the user is logged in to any of the given guards.
never
string|null
redirectTo(Request $request)
Get the path the user should be redirected to when they are not authenticated.
static void
redirectUsing(callable $redirectToCallback)
Specify the callback that should be used to generate the redirect path.
Details
protected void
authenticate(Request $request, array $guards)
Determine if the user is logged in to any of the given guards.
protected string|null
redirectTo(Request $request)
Get the path the user should be redirected to when they are not authenticated.