承接 7ute/laravel-provision 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

7ute/laravel-provision

最新稳定版本:v1.0.1

Composer 安装命令:

composer require 7ute/laravel-provision

包简介

Migrate provisioning data separately

README 文档

README

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

  1. Require the package with Composer
composer require 7ute/laravel-provision

2a. Use the install command (that will create the database/provisions folder and publish the migration and config)

php artisan provision:install

2b. (alternate method) you can publish the migrations and config separately by running vendor:publish

php artisan vendor:publish --provider="SevenUte\LaravelProvision\ProvisionServiceProvider" --tag="laravel-provision-migrations"
php artisan vendor:publish --provider="SevenUte\LaravelProvision\ProvisionServiceProvider" --tag="laravel-provision-config"

Once you’re fine with the config (config/provision.php), run the migration

php artisan migrate

Usage

  • php artisan provision {--force} {--silent} Run the provisions that haven’t been run yet (use --force to discard the production environment confirmation input)
  • php artisan provision:status Checks the provisions ran so far
  • php artisan provision:make {name} Creates a provision with the unique classname name
  • php artisan provision:rollback {name} Removes a provision from database with the classname or the filename name, 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

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-02