diglactic/laravel-breadcrumbs
Laravel-style breadcrumbs for your app. Define trails in a single place, render them with built-in or custom templates, and support route-bound crumbs and structured data. Official fork of Dave James Miller’s original Laravel Breadcrumbs.
Pros:
routes/breadcrumbs.php, separating UI concerns from business logic (MVC-friendly).route() helper, ensuring breadcrumbs stay in sync with route changes (e.g., route('post', $post)).parent() method simplifies nested breadcrumbs (e.g., categories, multi-level navigation).Cons:
composer require) + config publish (php artisan vendor:publish) takes <10 minutes.routes/breadcrumbs.php and render with {{ Breadcrumbs::render('name') }}.$category->title).RouteBoundBreadcrumbs won’t work (requires manual render() calls).<head> placement and may conflict with tools like Laravel Page Speed.$post->title) be passed?/posts/{id}, /categories/{slug}).routes/breadcrumbs.php and test rendering in Blade.{{ Breadcrumbs::render('name') }}.RouteBoundBreadcrumbs.php artisan vendor:publish --tag=breadcrumbs-views) for non-standard designs.$category).routes/web.php (for route-bound breadcrumbs).composer require diglactic/laravel-breadcrumbs
php artisan vendor:publish --tag=breadcrumbs-config
config/breadcrumbs.php (e.g., 'view' => 'breadcrumbs::bootstrap5').routes/breadcrumbs.php and define breadcrumb trails (e.g., home, blog, post).{{ Breadcrumbs::render('name', $params) }} to Blade views.routes/breadcrumbs.php), making updates easy.$post->title) may break if those attributes change.routes/breadcrumbs.php match those in routes/web.php.render() match those in the closure (e.g., $category).Breadcrumbs::generate('name') returns a collection for inspection.View::share() to pre-load breadcrumbs for specific routes.routes/breadcrumbs.php into modular files (e.g., routes/breadcrumbs/posts.php).How can I help you explore Laravel packages today?