| Package Data | |
|---|---|
| Maintainer Username: | gguney |
| Maintainer Contact: | gokhanguneygg@gmail.com (Gokhan Guney) |
| Package Create Date: | 2017-03-17 |
| Package Last Update: | 2022-02-23 |
| Home Page: | https://packagist.org/packages/gguney/rseeder |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-09 15:01:18 |
| Package Statistics | |
|---|---|
| Total Downloads: | 3,228 |
| Monthly Downloads: | 3 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 2 |
| Total Open Issues: | 1 |
Reverse Seeder Library for Laravel
$ composer require gguney/rseeder
Add package's service provider to your config/app.php
...
GGuney\RSeeder\RSeederServiceProvider::class,
...
$ php artisan make:reverseSeeder table_name
If you want to get rows from a date, you can use like: ######Warning: From date will not be included.
$ php artisan make:reverseSeeder table_name --from=1990-01-22 --by=created_at
Also, you can ignore some columns:
$ php artisan make:reverseSeeder table_name --except=id,is_created
All together:
$ php artisan make:reverseSeeder food_orders --from='2017-03-17 10:00:00' --by=created_at --except=id
Output:
$ FoodOrdersTableSeeder named seeder created in seeds folder.
Gökhan Güney - gokhanguneygg@gmail.com
RSeeder is licensed under the MIT License - see the LICENSE file for details