Giter Club home page Giter Club logo

laravel-breadcrumbs's Introduction

Latest Stable Version Total Downloads

Laravel Breadcrumbs

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

Installation

Just run this on the command line:

composer require creitive/laravel-breadcrumbs

Laravel 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 6

For Laravel 6 support, visit the creitive/laravel6-breadcrumbs package.

License

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

laravel-breadcrumbs's People

Contributors

pm-wobbuffet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.