Repository navigation
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:paramstocurrent()when noroute-nameis 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