Prevent your Laravel database migrations from failing by wrapping them in transactions.
- Requirements
- How to install
- How to use
- License
- Change log
- Testing
- Contributing
- Security
- Credits
- About
- PHP 7.1 or higher
- Laravel 5.4 or higher
From Laravel 5.5 and onwards, this package supports auto-discovery. Just add the package to your project using composer and you're good to go!
composer require sebastiaanluca/laravel-unbreakable-migrations
Install the package through Composer by using the following command:
composer require sebastiaanluca/laravel-unbreakable-migrations
Add the service provider to the providers
array in your config/app.php
file:
'providers' => [
SebastiaanLuca\Migrations\Providers\UnbreakableMigrationsServiceProvider::class,
]
migrateUp
migrateDown
$tables
drop
dropAllTables
dropColumn
tableExists
- …
This package operates under the MIT License (MIT). Please see LICENSE for more information.
Please see CHANGELOG for more information what has changed recently.
composer install
composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email hello@sebastiaanluca.com instead of using the issue tracker.
My name is Sebastiaan and I'm a freelance Laravel developer specializing in building custom Laravel applications. Check out my portfolio for more information, my blog for the latest tips and tricks, and my other packages to kick-start your next project.
Have a project that could use some guidance? Send me an e-mail at hello@sebastiaanluca.com!