thedevdojo / voyager

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

Voyager::model not always used #2769

Closed f0reclone closed 5 years ago

f0reclone commented 6 years ago

Description:

I wanted to override some models like Permission and Roles so I could use them with hyn/multi-tenant. Then I discovered that even when I stated Voyager::useModel for the Models in my AppServiceProvider sometimes Voyager didn't use my models (for example in the seeder classes). You can easily verify this by searching usages on a Laravel model and you see that oftentimes the model is directly used instead of being queried with Voyager::model.

Steps To Reproduce:

emptynick commented 5 years ago

Fixed in https://github.com/the-control-group/voyager/pull/3903

github-actions[bot] commented 4 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.