laravel 4 artisan -- how to rollback to a specific migration state?

laravel, laravel-4, migration, php

Solution

Laravel 5.3

With Laravel 5.3 there is no need for heavy scripting. As it allows to rollback given number of migrations.

php artisan migrate:rollback --step=1

Here's the manual page for reference.

Problem

Say i got `a.php`, `b.php`, `c.php` and `d.php` migration classes files. How to rollback to a specific migration state, the state defined within `b.php` for example, with artisan command ?

Original source