承接 elison/progressive-seeder 相关项目开发

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

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

elison/progressive-seeder

Composer 安装命令:

composer require elison/progressive-seeder

包简介

A package that manage seeders in the Laravel Framework

README 文档

README

About the package

Progressive seeder is a simple laravel package that monitors seeders on a Laravel project.

To run a seeder in the laravel you need to run the all seeders file which is usually run in the initialization of a project or to run each seeder using this command

php artisan db:seed --class=ClassName

Imagine having a project that you need to run a lot of seeders after updating the project, it will be tedious to do for each seeder that command in the production.

This package saves the seeder classes run by the project, and it runs automatically only the newest seeders.

Also, this package helps to keep track of what seeders are already run.

Install on laravel project

composer require elison/progressive-seeder

Add the provider in the app.php

config/app.php

\Elison\ProgressiveSeeder\ProgressiveSeederProvider::class

Add the table that saves the history of seeders that are already run

php artisan migrate

Example

Add seeders that already run before installation or seeders to be skipped from the automatic command

php artisan progressive-seeder:run UsersPermissionsSeeder

Run the newest seeders automatically

php artisan progressive-seeder:run

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-24