zaster

Is it ok to have multiple models for 1 table

Posted 2 months ago by zaster

When employees log in through

site.com/employees/login

They get to access the vendor_companies table through App\Models\Employee\VendorCompany Model

When vendors log in through

site.com/vendors/login

They get to access the vendor_companies table through App\Models\Vendor\VendorCompany

Is this approach ok?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.