rinvex / cortex-foundation-classic

The core foundation of Rinvex Cortex modular application architecture.
MIT License
7 stars 5 forks source link

fix route with ModelNotFoundException #365

Closed mohamed-hendawy closed 3 months ago

mohamed-hendawy commented 1 year ago

when we have Cortex\Auth\Models\MemberTenantable model, the generated route will be adminarea.cortex.membertenantables.membertenantables.index but the correct route should be adminarea.cortex.auth.members.index so we need to get the module name and the morph class for the resource.

Omranic commented 1 year ago

Seems legit, I'll check this scenario later and merge once confirmed 👌

Good, but we still have invalid case with overridden models for example member model will be adminarea.cybertalents.foundation.members.index instead of adminarea.cortex.auth.members.index