Package

Diglactic Laravel Breadcrumbs

A simple Laravel-style way to create breadcrumbs.

Package

diglactic/laravel-breadcrumbs

View on GitHub →

Laravel Breadcrumbs by Diglactic

Laravel Breadcrumbs is a package designed to manage breadcrumb navigation in Laravel applications effortlessly. It is an official fork of Dave James Miller's Laravel Breadcrumbs, enhanced and maintained by Diglactic.

Features

  • Easy Integration: Quickly add breadcrumb functionality to your Laravel applications.
  • Template Customization: Comes with built-in support for Bootstrap 4/5, Bulma, Foundation 6, Materialize, Tailwind CSS, UIkit, and JSON-LD structured data. It also allows for custom templates.
  • Dynamic Breadcrumb Generation: Define breadcrumbs using closures, allowing for dynamic generation based on application state or database content.
  • Route-Bound Breadcrumbs: Automatically generate breadcrumbs based on route names, reducing redundancy and enhancing maintainability.
  • Structured Data Support: Supports JSON-LD structured data format, enhancing SEO.
  • Extensive Configuration: Customize and configure breadcrumb templates and behavior directly from Laravel's config files.

Installation

  1. Install via composer:

    composer require diglactic/laravel-breadcrumbs
  2. Define breadcrumbs in routes/breadcrumbs.php. Example:

    Breadcrumbs::for('home', function ($trail) {
    $trail->push('Home', route('home'));
    });
  3. Customize the breadcrumb style by publishing and editing the configuration:

    php artisan vendor:publish --tag=breadcrumbs-config
  4. Output breadcrumbs in your views:

    {{ Breadcrumbs::render('home') }}

Usage Tips

  • Defining Breadcrumbs: Breadcrumbs are defined based on routes, making it straightforward to link breadcrumb trails to controller actions or views.
  • Custom Templates: Modify the appearance of your breadcrumbs by creating custom views or using one of the many predefined templates.
  • Advanced Features: Utilize advanced options like route model binding, dynamic breadcrumb titles, and custom data attributes within breadcrumbs for enhanced control.

Documentation

For more detailed information on usage and advanced features, refer to the official GitHub repository.


This package streamlines breadcrumb management in Laravel projects, making it an essential tool for improving navigation and SEO through structured data integration and dynamic breadcrumb generation.

Diglactic Laravel Breadcrumbs Related Articles

Laravel Breadcrumbs Package image

Laravel Breadcrumbs Package

Read article
Manage navigational elements in Laravel apps image

Manage navigational elements in Laravel apps

Read article
Bugsnag adds support for seeing what happens before an exception is thrown image

Bugsnag adds support for seeing what happens before an exception is thrown

Read article
Laravel Head: Manage Meta Tags, Open Graph, and JSON-LD image

Laravel Head: Manage Meta Tags, Open Graph, and JSON-LD

Read article
Version-Controlled Documentation Inside Your Laravel App with Laradocs image

Version-Controlled Documentation Inside Your Laravel App with Laradocs

Read article
Community Laravel Extension for Zed image

Community Laravel Extension for Zed

Read article

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises

Pushsilver

Pushsilver is simple invoicing for freelancers and small studios — send polished invoices, automate reminders, and get paid on time without the bloat.

Pushsilver

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift