2017 © Pedro PelĂĄez
 

library laravel-seeder

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

image

welderlourenco/laravel-seeder

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

  • Thursday, September 4, 2014
  • by welderlourenco
  • Repository
  • 2 Watchers
  • 0 Stars
  • 363 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

Laravel Seeder

Run one or more of your seeder files with this very easy command., (*1)

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?, (*2)

Instalation

Required steps

In the require key of master composer.json file add the following., (*3)

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

Run the Composer update comand, (*4)

composer update

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

return array(

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

)

Usage

Laravel Seeder adds to your db command namespace, two more commands:, (*6)

php artisan db:all

It will search for all Seeder files inside your /seeds folder and run them., (*7)

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", (*8)

Thanks

Thank God for the knowledge to write all this., (*9)

The Versions

04/09 2014

dev-master

9999999-dev https://github.com/welderlourenco/laravel-seeder

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

  Sources   Download

MIT

The Requires

 

laravel command seed seeder auto

04/09 2014

1.0.1

1.0.1.0 https://github.com/welderlourenco/laravel-seeder

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

  Sources   Download

MIT

The Requires

 

laravel command seed seeder auto

11/06 2014

1.0.0

1.0.0.0 https://github.com/welderlourenco/laravel-seeder

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

  Sources   Download

MIT

The Requires

 

laravel command seed