Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cerberuspup's avatar

Ignore specific migration files

Is there a way to let laravel know to ignore specific migration files? The reason I ask is because when I run php artisan migrate I need it to ignore a migration file, because that migration file needs to run only after I've done another artisan call

0 likes
2 replies
sr57's avatar

Assuming you have not migrate that file, the best way is to delete it (move it to another directory than database/migrations)

Robin Bastiaan's avatar

I have the same question, but my migration file is located in a vendor folder. Therefor I can't delete or move it.

1 like

Please or to participate in this conversation.