Marten
Marten

Reputation: 1384

Laravel migration reset fails

I have made some migration files in Laravel. When I type php artisan migrate in my terminal, everything goes fine. If I want to rollback all the migrations, I type php artian migrate:refresh, and I get an error:

[ErrorException]                                                             
include(/Applications/XAMPP/xamppfiles/htdocs/api-dashboardv2/app/database/ 
migrations/2014_10_03_113254_create_groups_user_table.php): failed to open
stream: No such file or directory.

The name if the file was 2014_10_03_113254_create_groups_user_table.php but I changed it to 2014_10_03_113254_create_group_user_table.php(without the 's' by group).

After I changed the filename, I removed my database manually and created al the tables again, with the migration files.

I do not understand why I still get this error.

Upvotes: 0

Views: 108

Answers (1)

Laurence
Laurence

Reputation: 60048

Did you try composer dump? Might need to reload the files since you changed the migration files.

Upvotes: 1

Related Questions