creitive/laravel6-breadcrumbs

Breadcrumbs integration for Laravel 6
44,422 1
Install
composer require creitive/laravel6-breadcrumbs
Latest Version:1.0.0
PHP:>=5.4.0
License:MIT
Last Updated:Dec 9, 2020
Links: GitHub  ·  Packagist
Maintainer: levacic

Latest Stable Version Total Downloads

Laravel 6 Breadcrumbs

A simple Laravel 6-compatible breadcrumbs package. Generates Twitter Bootstrap-compatible output.

Installation

Just run this on the command line:

composer require creitive/laravel6-breadcrumbs

Laravel 6 will use the auto-discovery function.

If using an older version of Laravel (or if you don't use auto-discovery) you will need to include the service providers / facade in config/app.php.

return array(
    // ...

    'providers' => array(
        // ...

        Creitive\Breadcrumbs\BreadcrumbsServiceProvider::class,
    ),

    // ...

    'aliases' => array(
        // ...

        'Breadcrumbs' => Creitive\Breadcrumbs\Facades\Breadcrumbs::class,
    ),
);

You're all set!

Usage

For usage documentation, please visit the core library that this package depends on: creitive/breadcrumbs.

This particular package registers a shared instance of the breadcrumbs class, and enables you to make the calls on the provided facade, ie. instead of doing $breadcrumbs->addCrumb('Home', '/'), you can do \Breadcrumbs::addCrumb('Home', '/').

Additionally, having this as a separate package enables us to move forward with Laravel-specific features, such as having a configuration file that enables you to more cleanly customize how the package works.

Laravel 4

For Laravel 4 support, visit the creitive/laravel4-breadcrumbs package.

Laravel 5

For Laravel 5 support, visit the creitive/laravel5-breadcrumbs package.

Laravel 7+

For Laravel 7+ support, visit the creitive/laravel-breadcrumbs package.

License

The code is licensed under the MIT license, which is available in the LICENSE file.

Related Packages

watson/breadcrumbs

Breadcrumbs made easy for Laravel.

43,057 45
creitive/laravel5-breadcrumbs

Breadcrumbs integration for Laravel 5

245,850 33
creitive/laravel4-breadcrumbs

Breadcrumbs integration for Laravel 4

7,838 1
glissmedia/breadcrumbs

Package Breadcrumbs for Laravel 5.4

1,067 0