I have been working on a Laravel 5.6 project with the Voyager 1.1 installed and I have confronted a problem which I'm not sure Voyager can solve.
I have two models in my app: Activity and User.
I have created a belongsToMany relationship between two models (since every user can join many activities and activities have many users) with the pivot table user_activity through Voyager and everything works fine.
However, I want to pass additional info through the user_activity pivot table(the role of that user in that activity) by adding an extra column to the pivot table.
My question is:
Is there a way that can be done through Voyager? I want to edit user roles through the edit activity view. Or do have to do it by hand?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire