I would like to modify the existing Authorization module provided by Laravel 5, instead of asking for the email
it will ask for the username
field
in controllers\auth\logincontroller add this
protected $username = 'user_name';//user_name field name
then go to Illuminate\Foundation\Auth\AuthenticatesUsers and change
public function username()
{
return 'email';//change this with "return $this->username;"
}
with this method You can have different log in type in different controller for example in another controller controllers\admin_auth\logincontroller
protected $username = 'phone_number';