how to re-migrate a laravel migration after deleting the table how to re-migrate a laravel migration after deleting the table laravel laravel

how to re-migrate a laravel migration after deleting the table


Laravel keeps a record of migrations that have been run. You need to go to the migrations table and delete the migration record. Laravel does this so that it knows which migrations have been run so that it doesn't run them again and so that in the case of a rollback, it knows the last batch of migrations which were done.

This may help https://laravel.com/docs/5.6/migrations


Try composer dump-autoload AND php artisan config:cache

if not working also Try php artisan migrate:refresh.

OR Also Delete Migration table in database.


You can simply do: php artisan migrate: fresh to re-migrate your migration and if you have seeder data then you simply do: php artisan migrate: fresh -- seed