How to rollback a particular migration in laravel?
If you want to rollback a specific migration, look in your migrations table, you’ll see each migration table has its own batch number. So, when you roll back, each migration that was part of the last batch gets rolled back.
Use this command to rollback the last batch of migration
php artisan migrate:rollback --step=1
Now, suppose you only want to roll back the very last migration, just increment the batch number by one. Then next time you run the rollback command, it’ll only roll back that one migration as it is a batch of its own.