Support the ongoing development of Laravel.io →
Authentication Cache Database

I use Laravel 5.0.

I have user table in my DB.

I changed table variables in User and Config/Auth to user but when I try to register Laravel gives me an error (changed real data to xxx):

Table 'xxx.crmx_users' doesn't exist (SQL: select count(*) as aggregate from xxxx where email = xxx

What I do wrong? Why Laravel is still looking for userS table?

Last updated 2 years ago.
0

rerun migration script, do composer update & artisan cache clear... to see if that helps..

also look in the User model for the table syntax..

0

Did you specify "protected $table = 'xxx'" in your Eloquent model? (I'm not sure if that's what you meant when you say you changed the table variables in User.)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

KamilFo kamilfo Joined 13 Jun 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.