Download the PHP package 7ute/laravel-provision without Composer
On this page you can find all versions of the php package 7ute/laravel-provision. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 7ute/laravel-provision
More information about 7ute/laravel-provision
Files in 7ute/laravel-provision
Package laravel-provision
Short Description Migrate provisioning data separately
License MIT
Homepage https://github.com/7ute/laravel-provision
Informations about the package laravel-provision
Migrate provisioning data separately
A set of commands to provision data separately from your migrations or test seeds.
Laravel comes with Migrations
, which are perfect for data structure, but feel odd for seeding data.
It also provides Seeders
which are suited for tests data ands fakes, but can’t track version, and can create confusion. LaravelProvision is here to fill the gap by providing a way to provision sequentially, your production data.
Installation
- Require the package with Composer
2a. Use the install command (that will create the database/provisions
folder and publish the migration and config)
2b. (alternate method) you can publish the migrations and config separately by running vendor:publish
Once you’re fine with the config (config/provision.php
), run the migration
Usage
php artisan provision {--force} {--silent}
Run the provisions that haven’t been run yet (use--force
to discard theproduction
environment confirmation input)php artisan provision:status
Checks the provisions ran so farphp artisan provision:make {name}
Creates a provision with the unique classnamename
php artisan provision:rollback {name}
Removes a provision from database with the classname or the filenamename
, allowing it to run again
Provision files
The provision files are run in their chronological order.
Only the files that have not been yet provisioned are run.
You can access the current app through $this->container
and current console through $this->command
.
Q&A
• What if I want X feature ?
Fork the repository and create a pull request
• What if it does not run as it should ?
Check the issues and create one if you don't find any suitable solution
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Spatie for everything they've done so far
- All Contributors
License
The MIT License (MIT). Please see License File for more information.