diglactic/laravel-breadcrumbs
Laravel-style breadcrumb generator for modern Laravel apps. Define breadcrumb trails in code, render them with built-in or custom templates, support structured data and route-bound breadcrumbs, with advanced options and troubleshooting docs.
Add support for Laravel 13.x.
Add support for Laravel 12.x with help from @u01jmg3! ✨
Add support for Laravel 11.x. See the upgrade guide for details.
Update PHPDoc tags + other cosmetic housekeeping with help from @Oleksandr-Moik 🚀
Add support for Laravel 10.x, courtesy of @SamuelNitsche! 🙌
Great catch by @mad-briller for finding a DocBlock still listing the deprecated ::for method 🙌
A mix between a bug fix and feature change, this release updates how we pull in and pass route parameters to breadcrumb closures to prevent unexpected results when setting parameters via middleware. This is ultimately a breaking change, as it excludes passing parameters set via middleware altogether.
See this PR comment for more details.
Thanks, @jaulz!
Allow Blade templates to be published by running php artisan vendor:publish --tag=breadcrumbs-views.
You rock, @nasrulhazim!
Add support for Laravel 9.x. Thanks, @freekmurze!
Chainable calls are here! Combined with arrow functions in PHP 7.4, you can now use the following elegant syntax:
<?php
use Diglactic\Breadcrumbs\Breadcrumbs;
use Diglactic\Breadcrumbs\Generator as BreadcrumbTrail;
Breadcrumbs::for(
'post',
fn (BreadcrumbTrail $trail, Post $post) => $trail
->parent('blog')
->push($post->title, route('post', $post))
);
Thanks to @tabuna for the original PR.
7.x also introduces some breaking housekeeping changes. Take a moment to review the upgrade guide.
davejamesmiller/laravel-breadcrumbs package. Thanks, lloricode! 🚀Happy Thanksgiving to our U.S. community! 🦃 Wishing everyone a safe and happy Thursday.
How can I help you explore Laravel packages today?