定制 10pearls/laravel-partial-seeder 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

10pearls/laravel-partial-seeder

Composer 安装命令:

composer require 10pearls/laravel-partial-seeder

包简介

Only seed what you haven't seeded yet.

README 文档

README

Only seed what you haven't seeded yet.

About

This packages extends the seeding functionality with the addition of history control. This allows you to only run the seeders that you haven't run yet.

Installation

Install this package with the following command:

composer require 10pearls/laravel-partial-seeder

ServiceProvider

Add the following line in providers, in the file config/app.php:

DevMcC\LaravelPartialSeeder\ServiceProvider::class,

Commands

The following is a documentation about all available commands:

Install

Usage

php artisan prtl-seeder:install [options]

Description

Creates the partial_seeds_history table

Options

Standard Artisan command options.

Status

Usage

php artisan prtl-seeder:status [options]

Description

Show the status of each partial seeder

Options

Standard Artisan command options.

Seed

Usage

php artisan prtl-seeder:seed [options]

Description

Seed the database with history controlled records

Options

Standard Artisan command options.

--database[=DATABASE]

The database connection to seed

--force

Force the operation to run when in production

Make

Usage

php artisan make:prtl-seeder <name> [options]

Description

Create a new partial seeder class

Arguments

The name of the class

Options

Standard Artisan command options.

Note

Note #1

The created seeder is added into the partial_seeds directory, in the database directory (database).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-15