kmossad
3 years ago
144
20
Laravel

Changing table used for Laravel 5.2 User Model

Posted 3 years ago by kmossad

For some reason even if I changed the App/User.php to use

protected $table = 'user';

I see Whoops show up with an error that

database.users = '[email protected]'; is not found

Why is it not enough to change the Model when you use "php artisan make:auth"? It should act like all other Models you make but clearly this is not the case if you want to override snake_case with this edit.

Can someone please assist?

Please sign in or create an account to participate in this conversation.