Authentication Introduction Database Considerations Authentication Quickstart Routing Views Authenticating Retrieving The Authenticated User Protecting Routes Login Throttling Manually Authenticating Users Remembering Users Other Authentication Methods HTTP Basic Authentication Stateless HTTP Basic Authentication Social Authentication Adding Custom Guards Adding Custom User Providers The User Provider Contract The Authenticatable Contract Events Introduction Want to get started fas
void __construct(Factory $auth) Create a new middleware instance. Parameters Factory $auth Return Value void
mixed handle(Request $request, Closure $next, string|null $guard = null) Handle an incoming request. Parameters Request $request Closure $next string|null $guard Return Value mixed
AuthenticateWithBasicAuth class AuthenticateWithBasicAuth (View source) Methods void __construct(Factory $auth) Create a new middleware instance. mixed handle(Request $request, Closure $next, string|null $guard = null) Handle an incoming request.
string username() Get the login username to be used by the controller. Return Value string
Response showLoginForm() Show the application's login form. Return Value Response
string redirectPath() Get the post register / login redirect path. Return Value string
Response logout(Request $request) Log the user out of the application. Parameters Request $request Return Value Response
Response login(Request $request) Handle a login request to the application. Parameters Request $request Return Value Response
AuthenticatesUsers trait AuthenticatesUsers (View source) Traits RedirectsUsers ThrottlesLogins
Page 952 of 996