thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Simple small suggestion about Seed files #4447

Open guillermo7227 opened 5 years ago

guillermo7227 commented 5 years ago

I really enjoy your software. I just have one suggestion. Put your seeders files in a directory on their own. I installed Voyager and it cluttered my database/seeds folder. Please don't do that. You can put those seeder files in database/seeds/voyager or something like that.

Thank you. I hope you do something about this.

If you can, please, suggest me a way to declutter my seeds folder. I want to move all Voyager seeders files to a subfolder in database/seeds/voyager. How do I do it without breaking anything?

fletch3555 commented 5 years ago

Seeder classes are still referenced by FQCN, just like any other PHP class. So as long as your composer.json file has an entry for the directory these files are in, it should work fine.