laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 28 forks source link

Seed before argument for migrate:fresh command? #2483

Closed Davidnadejdin closed 3 years ago

Davidnadejdin commented 3 years ago

Sometimes it is necessary to test migrations on fake data of the old format. It seemed to me that now it takes too long. It seems to me that now it takes too much action

Now:

php artisan migrate:fresh
php artisan migrate:rollback --step=2
php artisan db:seed
php artisan migrate

After:

// start seeding before running the last 2 migrations
php artisan migrate:fresh --seed --seed-before=2