Update source into github
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
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