mercredi 10 janvier 2018

Auth login issue with different table name and different field

I have user table. That name is tb_users. The field is user_name, user_email, user_pwd, remember_token etc.

I have changed in auth.php

  protected $table = 'mb_uzer181006';

  protected $fillable = ['user_name', 'user_email', 'user_pwd'];

  protected $hidden = ['user_pwd', 'remember_token'];

ErrorException in EloquentUserProvider.php line 112:

Undefined index: password

I am not sure how I will solve this problem. I want to learn auth login with a different field name not same same Users table



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire