Laravel 5.3: Migrate step by step

database-migration, laravel, laravel-5, migration, php

Solution

There is no official way to run migrations one by one as there is typically no need to, as it is the ease of them adding simultaneously that is a benefit to laravel.

The `--step=x` is used only when rolling back migrations.

If you did want to run migrations one by one they way to achieve this would be to add them one by to the project running `php artisan migrate` each time.

I hope this helped, comment if there is anything else you need or that is not clear.

Problem

I was wondering if it was possible to migrate migrations one by one in Laravel 5.3. I can't get the `--step` option working and documention only mention this option to be used with the `rollback` or the `refresh` command. ``` // this works php artisan migrate:rollback --step=1 // this doesn't work php artisan migrate --step=1 ``` Thank you, have a nice day

Original source