PHPackages                             hiiicomtw/breadcrumb-for-laravel - 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. hiiicomtw/breadcrumb-for-laravel

ActiveLibrary

hiiicomtw/breadcrumb-for-laravel
================================

A simple breadcrumb for laravel.

1.0.0.x-dev(8y ago)04.9k↓100%PHP

Since Dec 26Pushed 7y agoCompare

[ Source](https://github.com/hiiicomtw/breadcrumb-for-laravel)[ Packagist](https://packagist.org/packages/hiiicomtw/breadcrumb-for-laravel)[ Docs](https://www.hiii.com.tw/)[ RSS](/packages/hiiicomtw-breadcrumb-for-laravel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

breadcrumb-for-laravel
======================

[](#breadcrumb-for-laravel)

A simple breadcrumb for laravel.

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

[](#installation)

```
composer require hiiicomtw/breadcrumb-for-laravel:dev-master

```

Configuration
-------------

[](#configuration)

### config/app.php

[](#configappphp)

providers:

```
Hiiicomtw\Breadcrumb\BreadcrumbServiceProvider::class
```

aliases:

```
'Breadcrumb' => Hiiicomtw\Breadcrumb\BreadcrumbFacade::class
```

### config/breadcrumb.php

[](#configbreadcrumbphp)

You can change the **"default-template"** key by value **'breadcrumb::template'** 、 **'breadcrumb::sample'** or **'breadcrumb::backend'**

```
php artisan vendor:publish

```

```
return [
    'breadcrumb-file-path' => app_path('Http/breadcrumb.php'),
    'default-template' => 'breadcrumb::template',
    'ignore-undefined-breadcrumb' => false
];
```

### views/vendor/breadcrumb

[](#viewsvendorbreadcrumb)

You can edit the views where in **"resources/views/vendor"**

Base Usage
----------

[](#base-usage)

1. Create the breadcrumb file in the **"breadcrumb-file-path"**.
2. Define breadcrumbs in the breadcrumb file.

    Without parameters:

    ```
    // Home
    Breadcrumb::define('home', function ($breadcrumb) {
        $breadcrumb->add('Home', action('HomeController@index'));
    });
    ```

    With a parameter:

    ```
    // Home > $category->title
    Breadcrumb::define('category', function ($breadcrumb, $category) {
        $breadcrumb->add('Home', action('HomeController@index'));
        $breadcrumb->add($category->title, $category->url);
    });
    ```

    With parameters:

    ```
    // Home > $category['title'] > $content->title
    Breadcrumb::define('content', function ($breadcrumb, $category, $content) {
        $breadcrumb->add('Home', action('HomeController@index'));
        $breadcrumb->add($category['title'], $category['id']);
        $breadcrumb->add($content->title, $content->url);
    });
    ```
3. Render breadcrumbs.

    Without parameters:

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

    With a parameter:

    ```
    {!! Breadcrumbs::render('home', $category) !!}
    ```

    With parameters:

    ```
    {!! Breadcrumbs::render('home', $category, $content) !!}
    ```

Advanced Usage
--------------

[](#advanced-usage)

1. The breadcrumb use the special template.blade.php in resources/views.

    ```
    {!! Breadcrumbs::setTemplate('path/to/view')->render('home') !!}
    ```

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

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

Unknown

Total

1

Last Release

3009d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4350fc7808610e18fe2a696c18e7dad1d4f74180178953236ef07d98fd5b9e99?d=identicon)[hiiicomtw](/maintainers/hiiicomtw)

---

Top Contributors

[![AndyChen-hiii](https://avatars.githubusercontent.com/u/56012113?v=4)](https://github.com/AndyChen-hiii "AndyChen-hiii (12 commits)")

---

Tags

laravelbreadcrumb

### Embed Badge

![Health badge](/badges/hiiicomtw-breadcrumb-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/hiiicomtw-breadcrumb-for-laravel/health.svg)](https://phpackages.com/packages/hiiicomtw-breadcrumb-for-laravel)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

402385.8k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247582.7k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

60813.9k24](/packages/slowlyo-owl-admin)[fragkp/laravel-route-breadcrumb

7011.7k](/packages/fragkp-laravel-route-breadcrumb)

PHPackages © 2026

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