Tag: authentication

Laravel login with email or username

Laravel Auth: Login With Email Or Username In One Field

A quick great tip for you guys. Laravel default authentication allows you to login with an email only but we can also use some other field like username. Laravel by default only allows one field email for login but we...

/ April 14, 2018
redirectTo after login/registration

Redirect after login or register in Laravel: Adding a custom method

Laravel built-in authentication system has a $redirectTo property that you can use to customize where the user will be redirected after successful login/registration. But we can customize even more than that. By default, app/Http/Controllers/Auth/RegisterController.php has the $redirectTo property. class RegisterController extends Controller...

/ March 27, 2018