Support the ongoing development of Laravel.io →
posted 9 years ago
Database
Last updated 2 years ago.
0

I would have suggested that same command. In my experience, errors from migrations like come from the composer autoloader in your project. Usually dumping autoloader will rebuild with the new class names added. Also be sure you haven't renamed the file where it doesn't match the class name.

Last updated 2 years ago.
0

Run

php artisan optimize

and try again.

Last updated 2 years ago.
0

I've resolved the issues by running the below command:

COMPOSER=composer.json composer dump-autoload

What does COMPOSER=composer.json mean???

Last updated 2 years ago.
0

You need to first navigate to your project folder, THEN run composer dump-autoload.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

irfandayan irfandayan Joined 29 Nov 2014

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.

© 2024 Laravel.io - All rights reserved.