required table for Laravel 5 Authentication -


i'm using laravel's auth features, , said in documents should have "users" table in app can use feature, instead of "users" table got "user" table. changed $table property of user model, , changed table property of auth config file: 'table' => 'user' still got error upon registration: queryexception in connection.php line 620: sqlstate[42s02]: base table or view not found: 1146 table 'project.users' doesn't exist (sql: select count(*) aggregate users email = sth@yahoo.com)

if you're using different table name models need define them. in case should have

 protected $table = 'user'; 

in user model this.

class user extends authenticatable {     /**      * table associated model.      *      * @var string      */     protected $table = 'user'; } 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -