Unbreakable Laravel Migrations

Antonio Carlos Ribeiro has a new tutorial for wrapping migrations in transactions:

The problem, of course, isn’t in Laravel, but in my inability to do things right in the first try. The answer for me was to wrap them in a transaction layer, so, if something bad happens during a migrate command, the whole process is rolled back and I can just fix the migration and try again.