Releases: diglactic/laravel-breadcrumbs
v9.0.0
Add support for Laravel 11.x. See the upgrade guide for details.
v8.1.1
Update PHPDoc tags + other cosmetic housekeeping with help from @Oleksandr-Moik 🚀
v8.1.0
Add support for Laravel 10.x, courtesy of @SamuelNitsche! 🙌
v8.0.1
Great catch by @mad-briller for finding a DocBlock still listing the deprecated ::for
method 🙌
v8.0.0
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!
v7.2.0
Allow Blade templates to be published by running php artisan vendor:publish --tag=breadcrumbs-views
.
You rock, @nasrulhazim!
v7.1.1
Add support for Laravel 9.x. Thanks, @freekmurze!
v7.0.0
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.