{"repo":"ranium/laravel-seedonce","free":true,"listed":false,"github":"https://github.com/ranium/laravel-seedonce","clone":"git clone https://github.com/ranium/laravel-seedonce.git","description":"Laravel package to run seeders only once","language":"PHP","stars":20,"topics":["laravel","seeder","laravel-package","database","ranium","laravel-seeder"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel SeedOnce This package works similar to php artisan migrate . When using this package, each seeder is seeded only once even if you run php artisan db:seed multiple times (on each deployment). Why was this package developed? The purpose of this package is to make it easier for the developers to run seeders when working in teams and to run seeders during automated deployments. One doesn't need to remember which seeders have already been executed and which are pending. All this is handled by this package. Assumption This package assumes that you use one seeder (ex. DatabaseSeeder ) class as the main/parent for running all other seeders. This main seeder class should never seed any data directly on its own. It should only be used to run other seeder classes. Installation Use composer to install the package. Optionally, publish the package configuration file. Default config should work well in most of the cases. After the package is installed by composer, run the migrations to create a table which will hold the seeder information. Note: This will create a table named seeders in your database. If you want to change this table's name, then you have to publish the package's config (above step) and modify the value of table in config/seedonce.php . Configuration Once you have published the configuration file, you can edit it to suit your needs. Configuration options are as follows: - table : This is the name of the table that will hold the details of the seeders that have been ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ranium","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ranium/laravel-seedonce/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}