Nicer breadcrumb
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
db706269e6
commit
0dcaa83a3e
1 changed files with 1 additions and 0 deletions
|
@ -385,6 +385,7 @@ class BreadcrumbsServiceProvider extends ServiceProvider
|
|||
|
||||
Breadcrumbs::for('locations.edit', fn (Trail $trail, Location $location) =>
|
||||
$trail->parent('locations.index', route('locations.index'))
|
||||
->push($location->name, route('locations.show', $location))
|
||||
->push(trans('general.breadcrumb_button_actions.edit_item', ['name' => $location->name]), route('locations.edit', $location))
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue