brnbio/laravel-breadcrumbs is a Laravel package for breadcrumb helper for laravel framework.
It currently has 1 GitHub stars and 200 downloads on Packagist (latest version 1.1.0).
Install it with composer require brnbio/laravel-breadcrumbs.
Discover more Laravel packages by brnbio
or browse all Laravel packages to compare alternatives.
Last updated
Breadcrumb helper for laravel
You can easily define any breadcrumbs in templates, layouts and controllers. There are 2 ways to add breadcrumbs: with the breadcrumb helper function or a blade directive.
Add breadcrumbs
breadcrumbs()->add('Items', route('index'));
breadcrumbs()->add('Item detail');
You can also prepend breadcrumbs for e.g. the home link in any layout
breadcrumbs()->prepend('Home', '/');
// with icon:
// because breadcrumb text is always escaped
// you have to add escape=false
breadcrumbs()->prepend('<i class="fa fas-home" />', route('home'), ['escape' => false]);
Render breadcrumbs
breadcrumbs()->render();
same examples in blade
@breadcrumb('Home', '/')
@breadcrumb('Items', route('index'))
@breadcrumb('Item detail')
@section('content')
@breadcrumbs()
@endsection