https://github.com/creitive/laravel5-breadcrumbs
Laravel 5 integration for our breadcrumbs package
https://github.com/creitive/laravel5-breadcrumbs
breadcrumbs laravel php
Last synced: about 1 year ago
JSON representation
Laravel 5 integration for our breadcrumbs package
- Host: GitHub
- URL: https://github.com/creitive/laravel5-breadcrumbs
- Owner: creitive
- License: mit
- Created: 2015-03-07T18:49:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-12-09T14:53:19.000Z (over 5 years ago)
- Last Synced: 2025-03-27T08:48:10.545Z (about 1 year ago)
- Topics: breadcrumbs, laravel, php
- Language: PHP
- Size: 6.84 KB
- Stars: 34
- Watchers: 10
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://packagist.org/packages/creitive/laravel5-breadcrumbs) [](https://packagist.org/packages/creitive/laravel5-breadcrumbs)
Laravel 5 Breadcrumbs
=====================
*A simple Laravel 5-compatible breadcrumbs package. Generates Twitter Bootstrap-compatible output.*
Installation
------------
Just run this on the command line:
```
composer require creitive/laravel5-breadcrumbs
```
Laravel 5.5+ will use the auto-discovery function.
If using Laravel 5.4 (or if you don't use auto-discovery) you will need to include the service providers / facade in `config/app.php`.
```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](https://github.com/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](https://github.com/creitive/laravel4-breadcrumbs) package.
Laravel 6
---------
For Laravel 6 support, visit the [creitive/laravel6-breadcrumbs](https://github.com/creitive/laravel6-breadcrumbs) package.
Laravel 7+
---------
For Laravel 7+ support, visit the [creitive/laravel-breadcrumbs](https://github.com/creitive/laravel-breadcrumbs) package.
License
-------
The code is licensed under the MIT license, which is available in the `LICENSE` file.