This library allow to generate a seeder file from existing table in current database (Laravel).
composer require hzh/seeder
-
After Installation you must put this line in your config/app.php inside a provider's array:
Hzh\Seeder\HzhServiceProvider::class
-
Use this command to generate the seeder File:
php artisan hzh:seeder tableName ModelName
-
Enjoy it!