Skip to content

Commit ebbcdbc

Browse files
committed
Nicer breadcrumb
Signed-off-by: snipe <[email protected]>
1 parent a18691c commit ebbcdbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Providers/BreadcrumbsServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public function boot()
7474

7575
Breadcrumbs::for('hardware.edit', fn (Trail $trail, Asset $asset) =>
7676
$trail->parent('hardware.index', route('hardware.index'))
77-
->push(trans('general.breadcrumb_button_actions.edit_item', ['name' => $asset->asset_tag]), route('hardware.edit', $asset))
77+
->push($asset->present()->fullName(), route('hardware.show', $asset))
78+
->push(trans('admin/hardware/general.edit'))
7879
);
7980

8081

0 commit comments

Comments
 (0)