I need to put a id number in the middle of an URL to get this:
http://myapp.com/something/29/edit
Now, I have this:
'user_link' => ['here.i.need.to.put.my.route.with.the.number]
My number comes from $event->data->id
, is there a way to "concatenate" a number in the middle of a route? Something like
'user_link' => ['something.{id}.edit]
'user_link' => ['something.'.$event->data->id .'.edit] <-- I I do that Laravel shows an error: Route [something.{107}.edit] not defined
The route in question is:
Route::get('something/{id}/edit/', 'MyController@edit')->name('something.edit');
It's possible to put a {id} in the name
of the route?