Skip to content

gguney/rseeder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSeeder - Reverse Seeder for Laravel

This package creates Laravel seeders from present data in your database table.

Requirements

  • RSeeder works with PHP8 or above.
  • If you have older version of Laravel please check 1.x

Installation

$ composer require gguney/rseeder

Usage

$ 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.

Author

Gökhan Güney - gokhanguneygg@gmail.com

License

RSeeder is licensed under the MIT License - see the LICENSE file for details

About

Reverse Seeder Library for Laravel

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages