update fix deadcode, security
This commit is contained in:
@@ -4,20 +4,5 @@ namespace App\Support\Breadcrumb;
|
||||
|
||||
class Breadcrumb
|
||||
{
|
||||
|
||||
public array $breadcrumbs = [];
|
||||
|
||||
public function getBreadcrumbs(): array
|
||||
{
|
||||
return $this->breadcrumbs;
|
||||
}
|
||||
|
||||
public function add(string $label, string $url = ''): static
|
||||
{
|
||||
$this->breadcrumbs[] = [
|
||||
'label' => $label,
|
||||
'url' => $url
|
||||
];
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user