samedi 21 novembre 2015

Laravel - HasManyThrough in a different way

In the laravel docu is the following example for has-many-through relationship: Country has many posts through user.

enter image description here

But in my case i need something like this: User has many roles through customer.

enter image description here

I would like to have the has-many-through relationship from user to role.

Is there a way to get it working this way?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire