Laravel Migrations Deleted File

I am working on the Laracasts Laravel 5 Fundamentals, however, when I return to the migration again, I find that I had repeated migrations, at which point I decided - I will probably delete this. So I ... then started my problems.

When I try to download the migration, I get the following error:

[ErrorException] include(/home/vagrant/Code/Laravel/database/migrations/2015_05_24_211527_create_articles_table.php): failed to open stream: No such file or directory

However, when I checked my database (note that I deleted and recreated it to deal with my problem), and there are only two entries in the mirgations table:

vagrant@homestead:~/Code/Laravel$ sqlite3 storage/database.sqlite SQLite version 3.8.6 2014-08-15 11:46:33 Enter ".help" for usage hints. sqlite> select * from migrations; 2014_10_12_000000_create_users_table|1 2014_10_12_100000_create_password_resets_table|1 sqlite>

Any help would be appreciated if I would be an idiot and miss something obvious, please feel free to point it out too.

Thank!

+4
source share
1 answer

First mistake:

[ErrorException]
  include(/home/vagrant/Code/Laravel/database/migrations/2015_05_24_211527_create_articles_table.php): failed to
   open stream: No such file or directory

execution should be fixed composer dump-autoload.

: " ( , ), mirgations :"

, , - , , .

rm storage/database.sqlite
touch storage/database.sqlite
php artisan migrate:install
php artisan migrate
+8

All Articles