Skip links

Laravel [6-7-8-9] Migrate Specific File(s) from Migrations

Option 1

First you should create one migration file for your table like:

After create test folder in migrations folder then newly created migration moved/copied in test folder and run below command in your terminal/cmd like:

php artisan migrate --path=/database/migrations/test/

Option 2

php artisan migrate:refresh --path=/database/migrations/fileName.php

Source: https://stackoverflow.com/questions/45473624/laravel-migrate-specific-files-from-migrations

Leave a comment