I am trying to register an user using Laravel's native auth. Login works fine, but when I try to register a new user I get an error after submitting a form:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_db.user' doesn't exist
Of course, I made a table named users which I think has more sense and never had trouble up until now.
I am using Entrust for roles and permissions, so I had to change auth.php to:
'providers' => [
'user' => [
'driver' => 'eloquent',
'model' => User::class,
],
but even if I make this:
'providers' => [
'user' => [
'driver' => 'eloquent',
'model' => User::class,
'table' => users
],
it submits a form on user table
userstable is in the migrations provided by Laravel.usersandpassword_resettables are already there in migration you have to run migrationsApp\Userfile? make sure that it hasprotected $table = "users";'my_db.user'while your table is probably named users maybe in your model or config, you forgot writing the s