Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

RainDeer's avatar

Best practice for Web Route when attaching in many-to-many relationship

I have two models in a many-to-many relationship, User and Role.

What is the best practice of defining the route (web) for the attach function when a User gets a new Role? The Post method is already used by the Create function in the route.

0 likes
1 reply

Please or to participate in this conversation.