Join 25,000+ Laravel Developers and join the free Laravel Newsletter
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.

This appeared first on Laravel News
Laravel News Partners

Newsletter

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