Laravel Tutorials / updated: June 21, 2015

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.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.