PHPackages                             bocanhcam/nova-breadcrumb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bocanhcam/nova-breadcrumb

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bocanhcam/nova-breadcrumb
=========================

A Laravel Nova package provides an easy way to define and manage breadcrumbs.

v1.0.9(1y ago)512.3k↓10.9%MITPHPPHP ^7.4|^8.0

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bocanhcam/nova-breadcrumb)[ Packagist](https://packagist.org/packages/bocanhcam/nova-breadcrumb)[ RSS](/packages/bocanhcam-nova-breadcrumb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

Overview
--------

[](#overview)

This package provides an easy way to define and manage breadcrumbs for Laravel Nova resources. By implementing simple functions within your Nova resources, you can customize the breadcrumbs for various resource actions like `Index`, `Detail`, `Create`, `Update`, and more.

[![Breadcrumbs with icon](/screenshots/icon.png)](/screenshots/icon.png)

[![Breadcrumbs with html](/screenshots/html.png)](/screenshots/html.png)

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require bocanhcam/nova-breadcrumb
```

After installation, run the following command:

```
php artisan nova:breadcrumbs
```

This command publishes the necessary configuration and setup files for the breadcrumbs functionality like `Icon` and `HTML`.

Usage
-----

[](#usage)

First you need to invoke the `Nova::withBreadcrumbs` method. This method should be invoked from within the boot method of your application's `App\Providers\NovaServiceProvider` class:

```
use Laravel\Nova\Nova;

/**
 * Boot any application services.
 *
 * @return void
 */
public function boot()
{
    parent::boot();

    Nova::withBreadcrumbs();
}
```

Define Breadcrumbs in Your Nova Resources To define breadcrumbs for a Nova resource, implement the following functions in your resource class `(App\Nova\YourResource)`:

```
use Bocanhcam\NovaBreadcrumb\Breadcrumb;
use Bocanhcam\NovaBreadcrumb\Breadcrumbs;
use Bocanhcam\NovaBreadcrumb\HTML;
use Bocanhcam\NovaBreadcrumb\Icon;
use Bocanhcam\Nova\Http\Requests\NovaRequest;

class YourResource extends Resource
{
    public function breadcrumbsForIndex(NovaRequest $request): Breadcrumbs
    {
        return Breadcrumbs::make([
            Breadcrumb::make(Icon::make('home')->append(__('Home')), '/'),
            Breadcrumb::make(__('Resource Index'), '/nova/resources/events'),
        ]);
    }

    public function breadcrumbsForDetail(NovaRequest $request): Breadcrumbs
    {
        return Breadcrumbs::make([
            Breadcrumb::make(HTML::make(view('partials.home')->render()), '/'),
            Breadcrumb::make(__('Resource Index'), '/resources/events'),
            Breadcrumb::make(__('Events Detail')),
        ]);
    }
}
```

Breadcrumb Structure
--------------------

[](#breadcrumb-structure)

`Breadcrumbs::make(array $breadcrumbs)`

Creates a collection of breadcrumbs.

`Breadcrumb::make(string|Icon|HTML $name, string|null $path = null)`

Defines a single breadcrumb. Accepts:

`$name`: The label for the breadcrumb. Can include raw text, icons, or HTML.

`$url`: The optional URL the breadcrumb links to.

Advanced Features
-----------------

[](#advanced-features)

### Icons

[](#icons)

Use the `Icon` helper to add icons to your breadcrumbs. For example:

```
Breadcrumb::make(Icon::make('home')->append(__('Home')), '/'),
```

### HTML

[](#html)

Use the `HTML` helper for custom HTML views or fragments in breadcrumbs:

```
Breadcrumb::make(HTML::make(view('partials.home')->render()), '/');
```

Supported Actions
-----------------

[](#supported-actions)

Function NameAction`breadcrumbsForIndex`For listing all resources.`breadcrumbsForDetail`For viewing a single resource.`breadcrumbsForCreate`For creating a new resource.`breadcrumbsForUpdate`For editing an existing resource.`breadcrumbsForAttach`For attaching relationships.`breadcrumbsForReplicate`For replicating a resource.`breadcrumbsForLens`For viewing a resource lens.`breadcrumbsForDashboard`For viewing a dashboard.License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/license/MIT).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance44

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Recently: every ~23 days

Total

9

Last Release

445d ago

PHP version history (2 changes)v1.0.1PHP ^7.3|^8.0

v1.0.8PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/91a2ebe11c6e312f02d72b41fe97ac3c051c1988b7bba6d83f9404df565df5db?d=identicon)[bocanhcam](/maintainers/bocanhcam)

---

Top Contributors

[![bocanhcam](https://avatars.githubusercontent.com/u/35592955?v=4)](https://github.com/bocanhcam "bocanhcam (14 commits)")

---

Tags

laravelbreadcrumbsbreadcrumbnova

### Embed Badge

![Health badge](/badges/bocanhcam-nova-breadcrumb/health.svg)

```
[![Health](https://phpackages.com/badges/bocanhcam-nova-breadcrumb/health.svg)](https://phpackages.com/packages/bocanhcam-nova-breadcrumb)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
