What I want to do is change the use of the "email" column to login using the "name" column.
I followed this tutorial on youtube: link
I do exactly what he does but fail in the attempt. Any suggestions why?
If you are using the default login method laravel, just create a function, in the login file found in the folder:
App - > Http - > Controllers - > Auth
public function username()
{
return field;
}
where field
is the field to be used in the database, since the auth
of laravel method calls that function to know which field to read in the database.