Skip to main content
Breadcrumb · Revision #1

How can I filter the breadcrumb?

How can I filter the breadcrumb?

You can provide a filter callback to remove unwanted crumbs, it should return true when a crumb should be kept and false otherwise:

\Aero\Store\Facades\Breadcrumb::setFilter(function ($crumb) {
    if ($crumb->getName() === 'Foo') {
        return false;
    }

    return true;
});