Download the PHP package welderlourenco/laravel-seeder without Composer
On this page you can find all versions of the php package welderlourenco/laravel-seeder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download welderlourenco/laravel-seeder
More information about welderlourenco/laravel-seeder
Files in welderlourenco/laravel-seeder
Package laravel-seeder
Short Description Run your seeder files without touching your DatabaseSeeder.php file.
License MIT
Homepage https://github.com/welderlourenco/laravel-seeder
Informations about the package laravel-seeder
Laravel Seeder
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.
Run the Composer update comand
Once this operation completes, the final step is to add the provider in the app/config/app.php config file.
Usage
Laravel Seeder adds to your db
command namespace, two more commands:
It will search for all Seeder files inside your /seeds
folder and run them.
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.