database
Roll back the last batch of migrations.
php artisan php artisan migrate:rollback
Syntax
Syntax
php artisan migrate:rollback [--step=N]
Explanation
Runs the down() method of the last batch of migrations. --step=N rolls back exactly N migrations. Without --step, it rolls back the entire last batch. Check migrate:status to see which batch you're on.
Example
Example
php artisan migrate:rollback --step=3
Explanation
Runs the down() method of the last batch of migrations. --step=N rolls back exactly N migrations. Without --step, it rolls back the entire last batch. Check migrate:status to see which batch you're on.