I changed my users table. It worked perfectly with the previous table 'panel_users', and I changed table to 'admins' in User model:
protected $table = 'admins';
and in AuthController:
return Validator::make($data, [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:admins',
'password' => 'required|min:6|confirmed'
]);
Registration works just fine, but when I try to login with right credentials, page refreshes and error "These credentials do not match our records." occurs.
Table 'admins' has the same fields with my previous table, and some extra ones.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire