© 2026 Hedgehog Software, LLC
ViewField
(customer->contracts->resources)
( icon_customer + customer-> icon_contract + contracts-> icon_resource + resources)
<?php namespace App\Forms\Components; use Illuminate\Support\Collection; use Filament\Forms\Components\View; use Filament\Forms\Components\Field; class CustomBreadcrumbField extends Field { protected string $view = 'forms.components.custom-breadcrumb-field'; protected \Closure $getItemsUsing; public function items(\Closure $closure): static { $this->getItemsUsing = $closure; return $this; } public function getItems(): array { $items = ($this->getItemsUsing)($this->getRecord()); return collect($items)->map(function ($item) { return array_merge([ 'label' => null, 'sub-label' => null, 'url' => null, 'icon' => null, ], $item); })->toArray(); } }