Laravel Unbreakable Migrations
, (*1)
![Follow @sebastiaanluca on Twitter][twitter-profile-badge]
[][link-twitter-share], (*2)
Prevent your Laravel database migrations from failing by wrapping them in transactions., (*3)
Table of contents
Requirements
- PHP 7.1 or higher
- Laravel 5.4 or higher
How to install
Laravel 5.5
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!, (*4)
composer require sebastiaanluca/laravel-unbreakable-migrations
Laravel 5.4
Install the package through Composer by using the following command:, (*5)
composer require sebastiaanluca/laravel-unbreakable-migrations
Add the service provider to the providers array in your config/app.php file:, (*6)
'providers' => [
SebastiaanLuca\Migrations\Providers\UnbreakableMigrationsServiceProvider::class,
]
How to use
Generating migrations
Unbreakable migrations in detail
migrateUp
migrateDown
$tables
drop
dropAllTables
dropColumn
tableExists
- …
Transactional migration
License
This package operates under the MIT License (MIT). Please see LICENSE for more information., (*7)
Change log
Please see CHANGELOG for more information what has changed recently., (*8)
Testing
bash
composer install
composer test, (*9)
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*10)
Security
If you discover any security related issues, please email hello@sebastiaanluca.com instead of using the issue tracker., (*11)
Credits
About
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., (*12)
Have a project that could use some guidance? Send me an e-mail at hello@sebastiaanluca.com!, (*13)