Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Breadcrumbs Laravel Package

diglactic/laravel-breadcrumbs

A simple, Laravel-style way to create breadcrumbs. Define breadcrumbs alongside routes, output them with custom templates, generate structured data, and bind breadcrumbs to route models. Official fork of Dave James Miller's classic package.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Navigation architecture / IA decisions. Breadcrumbs force an explicit answer to "what is the parent of this page?" That is an information-architecture decision, not just a UI one. Shipping this package makes hierarchy a first-class, declarative artifact (routes/breadcrumbs.php) that design and product can review together, instead of an implicit side effect of route naming.
  • Roadmap: go deeper without redesigning nav. If the roadmap includes nested categories, multi-level catalogs, documentation trees, or long-form content hubs, breadcrumbs are the cheap enabler. The package explicitly supports arbitrary depth via repeated push() or recursive parent chains — so "add a third level of categories" stops being a navigation project.
  • SEO investment decision. The built-in breadcrumbs::json-ld template emits schema.org BreadcrumbList structured data. If organic search is a growth lever, this is the lowest-effort structured-data win available: one extra Blade call in <head>, no new service, no new vendor. It also gives you a defensible answer when SEO asks "can we get breadcrumb rich results?"
  • Build vs. buy — clearly buy. Scope is small, but the "small" version is deceptively fiddly: parent chaining, dynamic titles from Eloquent, last-item-is-not-a-link behavior, escaping, multiple CSS frameworks, view publishing, runtime view switching, route-bound breadcrumbs to remove per-page duplication. That's roughly 1–2 engineer-days to build plus ongoing surface area to own. MIT license, zero cost, zero procurement. Buy.
  • Template/design-system decision. Nine built-in views (Bootstrap 4/5, Tailwind, Bulma, Foundation, UIkit, Materialize, JSON-LD) plus vendor:publish --tag=breadcrumbs-views and fully custom views. Design can pick or fork a template without touching PHP — a useful decoupling when design and backend ship on different cadences.
  • Multi-surface reuse. Breadcrumbs::generate() returns the collection without rendering, and Breadcrumbs::view() renders an alternate template — so the same definition feeds HTML nav, JSON-LD head tags, and any future surface (email, PDF, AMP, sitemap). One source of truth for hierarchy.
  • Good candidate for a "small wins" backlog slot. It's a single-sprint, low-blast-radius item that visibly improves UX and has a measurable SEO hook. Useful when a roadmap needs credible low-cost deliverables alongside long bets.

When to Consider This Package

Adopt when most of these hold:

  • The app is Laravel 6–13 (the compatibility chart covers 6.x through 13.x under the 10.x line — unusually broad and current for a utility package).
  • Content is hierarchical and more than two levels deep — e-commerce categories, docs, blog with categories, marketplaces, multi-tenant/workspace-scoped resources.
  • Content is database-driven, so breadcrumb titles must resolve from Eloquent models rather than being hardcoded ($post->title, $category->title, ancestor loops).
  • Rendering is server-side Blade, possibly with a small amount of JS on top.
  • SEO structured data is on the roadmap and you'd rather not hand-roll JSON-LD.
  • You want hierarchy declared in one reviewable file rather than scattered across controllers and layouts.

Look elsewhere (or don't adopt) when:

  • The frontend is SPA / Inertia / headless / API-only. This package renders Blade views; if breadcrumbs belong to a React/Vue router or design-system component, the value collapses to "a data structure you'd rather build in TypeScript." An API-only backend gets nothing here.
  • You require fully automatic inference of breadcrumbs from route/URL structure with zero per-page definitions. This package is explicit-by-default; the route-bound mode reduces duplication but still expects named routes and a breadcrumb definition per name.
  • You need breadcrumbs as part of a larger navigation/SEO platform (menus, sitemaps, canonical/hreflang management) — evaluate a broader suite instead of stitching point solutions.
  • Governance requires a vendor with support contracts. This is a community fork; MIT means you can fork it, but nobody is on call.
  • The hierarchy is genuinely two levels deep and static (e.g., Home > a handful of fixed pages). A five-line Blade partial is the honest answer; adding a dependency buys nothing.

Adoption diligence worth doing before commit:

  • Maintenance continuity. This is the official fork of Dave James Miller's original package, actively released (latest 2026-03-30) with CI and a Laravel 13 line. Healthy — but it is a small-maintainer project. MIT licensing means the worst case is an in-house fork, and the surface is small enough that this is a genuine mitigation, not a hand-wave.
  • Dependent count of 0 is a data artifact, not a signal of abandonment. A view-layer utility is a leaf dependency; the star count (~976) is the more meaningful adoption proxy here.
  • Pin a major version and note the Laravel-version-to-package-version mapping in your upgrade runbook — the 8.x/9.x/10.x lines are Laravel-version-aligned, so Laravel majors imply a breadcrumbs bump.

How to Pitch It (Stakeholders)

One-liner for the exec/roadmap review: A free, MIT-licensed Laravel package that gives us consistent, hierarchy-aware breadcrumb navigation and Google-readable structured data for roughly one engineer-day of work and no ongoing license cost.

What it buys us:

  • UX: users always know where they are and can jump up a level — measurable in fewer back-button exits from deep pages.
  • SEO: built-in JSON-LD BreadcrumbList output, which is a prerequisite for breadcrumb rich results. Cheap, concrete, attributable.
  • Speed: nine pre-built design templates plus a custom-view path mean design isn't blocked on backend and backend isn't blocked on design.
  • Maintainability: hierarchy lives in one declarative file instead of being re-derived per page, so adding a content level is a config change rather than a refactor.

What it costs: one Composer dependency, one config file, one routes/breadcrumbs.php, and a Blade call per template (plus one in <head> for JSON-LD). No database changes, no new services, no infrastructure, no data migration.

Risk posture — low: MIT license, no vendor lock-in, no runtime dependency on a third party. If the project stalled tomorrow, we could fork it or replace it with a hand-rolled partial in about a day. Removal cost is similarly small, so this is a reversible decision — which is why it's worth making now rather than scheduling a spike.

For engineering specifically: idiomatic Laravel — closures, named routes, Eloquent models passed into the trail, standard Blade views, vendor:publish for config and templates. Supports Laravel 6 through 13, ships CI, and covers the edge cases you'd otherwise hit later: last-item-as-text, dynamic titles, nested/recursive ancestors, runtime view switching, and route-bound breadcrumbs to eliminate Breadcrumbs::render() duplication across controllers and views.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
labyrinthe/connect-php
encore2/laravel-admin2
cboxdk/laravel-console-kit
shapecode/doctrine-dbal-datetimeutc
gilads-otiannoh254/inertia-protocol
dakiquang/laravel-oauth-refresh-lock
woda/laravel-worktrees
dalefranks/ramasite
faghy/laracashbook
roundly-consulting/google-places-for-laravel
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
adachsoft/cli-process-tester
adachsoft/changelog-linter
adachsoft/collection
adachsoft/php-code-style
adachsoft/api-version-bundle