To create "breadcrumbs", the Breadcrumbs
component is used.
You can create Breadcrumbs
using the static method make()
.
make(array $items = [])
- $items - a list of "breadcrumbs", where the key is the link to the resource, and the value is the name of the item.
use MoonShine\UI\Components\Breadcrumbs; Breadcrumbs::make([ '/' => 'Home', '/articles' => 'Articles']),
<x-moonshine::breadcrumbs :items="[ '/' => 'Home', '/articles' => 'Articles' ]"/>