承接 welderlourenco/laravel-seeder 相关项目开发

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

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

welderlourenco/laravel-seeder

Composer 安装命令:

composer require welderlourenco/laravel-seeder

包简介

Run your seeder files without touching your DatabaseSeeder.php file.

README 文档

README

Run one or more of your seeder files with this very easy command.

Introduction

Did you notice the work it takes to perform database seeding in Laravel nowadays? Uncomment, comment and uncomment your calls again. Well, not anymore, with Laravel Seeder all the boring and unnecessary work it's done! Here you can perform a database seeding with only one command without having to modify your DatabaseSeeder.php file. Amazing huh?

Instalation

Required steps

In the require key of master composer.json file add the following.

"welderlourenco/laravel-seeder" : "dev-master"

Run the Composer update comand

composer update

Once this operation completes, the final step is to add the provider in the app/config/app.php config file.

return array(

  // ...
  'providers' => array(
  	// ...
    'WelderLourenco\LaravelSeeder\Providers\LaravelSeederServiceProvider'
  ),

)

Usage

Laravel Seeder adds to your db command namespace, two more commands:

php artisan db:all

It will search for all Seeder files inside your /seeds folder and run them.

php artisan db:only --files="UserTableSeeder"

It will run only the files you specify in the --files option, please, notice that you can pass multiple files separated by colon: --files="UserTableSeeder, RoleTableSeeder, PermissionTableSeeder"

Thanks

Thank God for the knowledge to write all this.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固