Does manually emptying out your DB help? I sometimes get the error on an unexpected moment and often the migrations table is messed up.
[HELP] Refeshing database with artisan migrate:refresh --seed now errors out
I have a Terminal alias (reseed) that runs "artisan migrate:refresh --seed" to clean out my development db and I use it pretty regularly.
This morning I started getting this error:
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'CreateCroppracticesTable' not found","file":"\/Users\/jgravois\/sites\/armlend\/vendor\/laravel\/framework\/src\/Illuminate\/Database\/Migrations\/Migrator.php","line":299}}%
As I understand that error, it is looking for a migration file to create the Croppractices table and that migration file is still in the project and that table gets rebuilt like it should.
The only way that I can get back to work is to delete the "2014_10_11_044410_create_croppractices_table" record from the migrations table, delete the croppractices table manually and run "composer dump-autoload -o" and then the "reseed" command works perfectly.
Needless to say, this is killing my workflow. I didn't make any changes this morning to files that would affect this and I don't know how to fix this permanently.
Any help is greatly appreciated.
Please or to participate in this conversation.