cluel3ss's avatar

Eloquent still using old database connection

I have created a very basic laravel app that uses the default Auth controller and table, using this I have registered one user to allow me to login.

I started development in my Laravel app using sqlite, however I have decided to change this to mysql, I have made the appropriate changes in my .env and database.php files.

Artisan now uses the new db (mysql) for migrations and any commands I use i.e. User:all(); however my laravel application seems to be still using the sqlite db.

it must be down to caching, but I've already ran 'php artisan config:clear' and had no luck.

How can I resolve this?

0 likes
2 replies
Dzemal's avatar

I'm not sure that this will help but have you tried to run: composer dump-autoload?

Please or to participate in this conversation.