jeudi 10 mars 2022

modify the default login in laravel

i need to modify the default login, (email and password). I must use a field other than email to make the login

User Model:

  protected $fillable = [
    'name',
    'email',
    't_matricula',
    'matricula',
    'number',
    'password',
];

i could use the Number field as data to login, where should I modify to use Number instead of Name?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/gxFv0I6
via IFTTT

Aucun commentaire:

Enregistrer un commentaire