2
I have the following route on my Laravel app (v5.5):
Route::resource('tags', 'Painel\TagsController');
In accordance with documentation official, 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 database and printed via loop loop. I can do what I want this way:
<a title="Editar" href="{{ url('/painel/tags/' . $t->id . '/edit') }}">
However, I wanted to see if some Laravel Helper allows you to do this in a more elegant way, something like:
<a title="Editar" href="{{ url('/painel/tags/edit', $t->id) }}">