You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We cannot use Seed files using the same name of any of Voyager files, like DataRowsTableSeeder, PermissionsTableSeeder, etc., because they are being autoloaded from composer.
As result, when installing a Hook the system will use classes from the auloaded, missing the seeds located on the Hook folder.
This bug was hard to figure out, because install will run fine without any error message.
The text was updated successfully, but these errors were encountered:
Yea, I think it would be a good idea to namespace them, but Laravel seeder does not support that by default, so will need to overwrite some code in the seeder script.
Once that is done I think we should just write a best practice about doing so, in order for the community to namespace their seeders in the hooks.
marktopper
changed the title
bug | Name collision with Seed files
Name collision with Seed files
Feb 7, 2018
We cannot use Seed files using the same name of any of Voyager files, like
DataRowsTableSeeder
,PermissionsTableSeeder
, etc., because they are being autoloaded from composer.As result, when installing a Hook the system will use classes from the auloaded, missing the seeds located on the Hook folder.
This bug was hard to figure out, because install will run fine without any error message.
The text was updated successfully, but these errors were encountered: