Added route param to message

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-23 16:37:01 +01:00
parent 30835fe9ba
commit 175862d3c9

View file

@ -206,7 +206,7 @@ class AssetsController extends Controller
if ($success) {
return redirect()->route('hardware.index')
->with('success-unescaped', trans('admin/hardware/message.create.success_linked', ['link' => route('hardware.show', $asset->id), 'id', 'tag' => e($asset->asset_tag)]));
->with('success-unescaped', trans('admin/hardware/message.create.success_linked', ['link' => route('hardware.show', ['hardware' => $asset->id]), 'id', 'tag' => e($asset->asset_tag)]));
}