Skip to content

v1.1.0

Latest

Choose a tag to compare

@daikazu daikazu released this 02 Jun 14:04
· 1 commit to main since this release

Added

  • Breadcrumbs::current() now accepts explicit parameters (current(mixed ...$params)) that override the current route's bound parameters. This lets you pass an already-resolved model to a breadcrumb closure when the route only binds a scalar (e.g. a slug), avoiding a second lookup. Parameters are matched positionally, so the closure's parameter name does not matter.
  • The <x-breadcrumbs /> Blade component forwards its :params to current() when no route-name is given, so <x-breadcrumbs :params="[$post]" /> resolves the current route with the supplied object.

Calling current() with no arguments is unchanged and remains fully backward compatible.

Full Changelog: v1.0.0...v1.1.0