jeudi 22 juin 2017

Laravel routing for a model with more than one key as the primary key

My model has company_id and employee_id as the primary key.

Normally, we use /company/01/edit to edit the company. But how the routing should be for employee? Both company_id and employee_id have to be in the URI.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire