jeremykenedy / laravel-material-design

Laravel 5.6 on Material Design Lite 1.3 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. This makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. Uses laravel ORM modeling and has CRUD (Create Read Update Delete) functionality for all tasks. Quick setup, can be done in 5 minutes. It will take longer to obtain your Facebook, Twitter, and Google Plus API Keys than it will to set this up.
https://mdl.consultjeremy.com
MIT License
261 stars 108 forks source link

Dears, #14

Closed Huthaifah-kholi closed 5 years ago

Huthaifah-kholi commented 5 years ago

Dears, I tried to change the login process from taking email, password and replace email with the username, so this change needs to change the login controller. I search for it and open the login form: it appears that login form route to /login which it the same page. can anyone help me to find where the login process locate in which file?

jeremykenedy commented 5 years ago

The login authentication itself is handled by the laravel auth class which out the box with laravel.

jeremykenedy commented 5 years ago

The docs here outline how to change that to what you are seeking:

https://laravel.com/docs/5.7/authentication#included-authenticating

Under the section titled: Username Customization

Which looks like you would add the following method to the LoginController.php file

public function username()
{
    return 'username';
}