Khanh Tran
Khanh Tran

Reputation: 1826

Laravel artisan migrate command not working

after generating migration and ran the migrate command (php artisan migrate) I saw this error:

PHP Fatal error:  Class 'Admin_Create_Galleries' not found in /var/www/sampleapp/laravel/cli/tasks/migrate/resolver.php on line 121

I have no idea in this error, after searching on resolver.php, I found no "Admin_Create_Galleries" word on resolver.php. Could you help me with this errors?

Upvotes: 0

Views: 1258

Answers (1)

Laurence
Laurence

Reputation: 60058

the file will be referred to in your migrations table in your database - if you no longer have that file, or changed the name, you should update it in the migrations table.

Note: normally it is better to either roll back a migration, or do another migration, rather than editing the migration itself.

Upvotes: 1

Related Questions