Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Call seeder in DatabaseSeeder.php #1056

Open
Mosaab-Emam opened this issue Dec 22, 2022 · 0 comments
Open

[Feature] Call seeder in DatabaseSeeder.php #1056

Mosaab-Emam opened this issue Dec 22, 2022 · 0 comments
Labels

Comments

@Mosaab-Emam
Copy link
Contributor

When database_seeder option is set to true in config/laravel_generator.php, the seeder for model gets generated, but not called in database/seeders/DatabaseSeeder.php, which is expected.

Suggestion

After generating seeder, add a call to the seeder inside this->call([])' in DatabaseSeeder.php file. Create the call function if it does not exist already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants