I have the following route in my Laravel application (v5.5):
Route::resource('tags', 'Painel\TagsController');
As official documentation , this gives me a route with action edit, verb GET and URI (/ photos / {photo} / edit). In my View I need to generate a list, example:
<a title="Editar" href="{{ url('/painel/tags/1/edit') }}">
<a title="Editar" href="{{ url('/painel/tags/2/edit') }}">
<a title="Editar" href="{{ url('/painel/tags/3/edit') }}">
Numeric values represent the records returned from the bank and printed via loopback. I can do what I want this way:
<a title="Editar" href="{{ url('/painel/tags/' . $t->id . '/edit') }}">
However, I wanted to see if any Laravel Helper lets you do it in a more elegant way, something like:
<a title="Editar" href="{{ url('/painel/tags/edit', $t->id) }}">