seka19/laravel-breadcrumbs

Laravel package for displaying DB-based breadcrumbs in views
2,093
Install
composer require seka19/laravel-breadcrumbs
Latest Version:1.0.0
PHP:>=7.4
Laravel:8
License:Apache-2.0
Last Updated:Dec 26, 2020
Links: GitHub  ·  Packagist
Maintainer: Alexey Sinkevich

Laravel package for displaying breadcrumbs in views

Breadcrumbs are saving in the DB for each page by its URI parts.

Example:

# In the View for the page with URL `http://site.com/catalog`
{{ breadcrumbs('Catalog') }}

# Will render only one breadcrumb:
Catalog

#In the page with URL `http://site.com/catalog/cars`
{{ breadcrumbs('Cars') }}
        
# Will render:    
Catalog / Cars

# In the page with URL `http://site.com/catalog/cars/ford`
{{ breadcrumbs('Ford') }}
        
# Will render:    
Catalog / Cars / Ford

Installation

composer require seka19/laravel-breadcrumbs

Customize View

By default breadcrumbs are rendering with Bootstrap-4 view.

You can publish it and customize or create your own template:

php artisan vendor:publish --provider='Seka19\LaravelBreadcrumbs\LaravelBreadcrumbsServiceProvider' --tag='views'

Then you can put new View name as second argument:

{{ breadcrumbs('Catalog', 'vendor.breadcrumbs.your-breadcrubms') }}

Publish config

There are only three parameters that should be obvious:

php artisan vendor:publish --provider='Seka19\LaravelBreadcrumbs\LaravelBreadcrumbsServiceProvider' --tag='config'

Related Packages

mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

21,859,365 1,981
kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6,401,765 647
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,177,464 2,587
ajthinking/archetype

Programmatically edit PHP and Laravel files.

4,566,573 271

Version History

Version Released PHP Laravel License
1.0.0 >=7.4 ^8 Apache-2.0
0.8.1 >=7.1 5.5.x Apache-2.0
0.8.0 >=7.1 5.5.x MIT