It doesn't matter what company the event belongs to, why not make the url event/1/edit ? without "/compmany/1/"
Jan 25, 2015
6
Level 30
Quick Question how to handle id`s in the url
For example:
A User has many companies and each companies has many events.
If i edit one of my companies the url would be ../company/1/edit
Ok so far so good .. now i added a event to this company. The url would be ../compmany/1/event/create
Now the "tricky" part if i want to edit this event the url would be:
../company/1/event/1/edit
But this of course does not work because i cant give two ID`s to the routes.php
Should i go for a slug ? Or the better question: How are you guys handle this ?
Please or to participate in this conversation.