Use named route with params

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-03-28 07:18:45 -07:00
parent 52fd334745
commit 09674c012c

View file

@ -113,7 +113,7 @@
<td> <td>
@can('view', \App\Models\AssetModel::class) @can('view', \App\Models\AssetModel::class)
<a href="{{ url('/') }}'/models/'.{{ $requestableModel->id }}) }}">{{ $requestableModel->name }}</a> <a href="{{ route('models.show', ['model' => $requestableModel->id]) }}">{{ $requestableModel->name }}</a>
@else @else
{{ $requestableModel->name }} {{ $requestableModel->name }}
@endcan @endcan