php - How to change User Table in Laravel? -


i use laravel 5.0.

i have user table in db.

i changed table variables in user , config/auth user when try register laravel gives me error:

table 'xxxx.crmx_users' doesn't exist (sql: select count(*) aggregate `xxxx` `email` = xxx 

what wrong? why laravel still looking users table?

go app\services\registrar.php file, , in validator() function.

public function validator(array $data)     {         return validator::make($data, [             'name' => 'required|max:255',             'email' => 'required|email|max:255|unique:users',             'password' => 'required|confirmed|min:6',         ]);     } 

change

'email' => 'required|email|max:255|unique:your_table_name', 

i believe solve problem.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -