Closed rbarden closed 3 years ago
@rbarden I didn't add it since I'm not sure where it should be loaded for package development. It would be weird to use database/seeders
as it's not loaded by default.
You can however add it easily using canvas.yaml
preset: package
generators:
- Orchestra\Canvas\Commands\Database\Seeder
In my case, I use seeders to setup the database before running tests (along with factories), as well as a package might need to seed the database upon installation to a project.
This adds the
make:seeder
command available during package development when calling./vendor/bin/canvas make:seeder ...
which currently fails because it is not defined.The tests pass because they are not using this file to run commands.