breadcrumbs() html()

A breadcrumb trail; the last item without a link is the current page.

html()->breadcrumbs($data = [], $extra = [])

Options

OptionMeaning
$dataItems ['link', 'name']; names are escaped.
class, idClasses; id.

Example

Code

return html()->breadcrumbs([
    ['link' => '#home', 'name' => 'Home'],
    ['link' => '#library', 'name' => 'Library'],
    ['name' => 'Data'],
]);

Bootstrap 3 and 5

Bootstrap 3 breadcrumbs; Bootstrap 5 breadcrumb-item with aria-current.

See also: html/navbar