Authentication

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

AuthenticateWithBasicAuth::__construct()

void __construct(Factory $auth) Create a new middleware instance. Parameters Factory $auth Return Value void

AuthenticateWithBasicAuth::handle()

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

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.

AuthenticatesUsers::username()

string username() Get the login username to be used by the controller. Return Value string

AuthenticatesUsers::showLoginForm()

Response showLoginForm() Show the application's login form. Return Value Response

AuthenticatesUsers::redirectPath()

string redirectPath() Get the post register / login redirect path. Return Value string

AuthenticatesUsers::logout()

Response logout(Request $request) Log the user out of the application. Parameters Request $request Return Value Response

AuthenticatesUsers::login()

Response login(Request $request) Handle a login request to the application. Parameters Request $request Return Value Response

AuthenticatesUsers

AuthenticatesUsers trait AuthenticatesUsers (View source) Traits RedirectsUsers ThrottlesLogins