php - Laravel 5 Auth - custom table with users -


i'm learning laravel auth , have small problem. read pages google mechanism , i'm using

auth::attempt(['email'=>$request['email'],'password'=>$request['password']]); 

laravel gives me error:

sqlstate[42s02]: base table or view not found: 1146 table 'base.users' doesn't exist (sql: select * `users` `email` = admin@domain.com limit 1) 

in fact don't have users table in database, i'm using name accounts. how can change default table in auth?

and additional question is: when put data auth::attempt() data changed sql query , data base? how can add more data in base? simple have table ban field have number of days when ban goes end. , want add field isbanned true/false data. if ban>0 true, otherwise false.

in config/auth.php change 'table' => 'users' 'table' => 'accounts'


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -