Package Data | |
---|---|
Maintainer Username: | levacic |
Maintainer Contact: | milos.levacic@creitive.com (Milos Levacic) |
Package Create Date: | 2015-03-07 |
Package Last Update: | 2020-12-09 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-10-10 03:02:31 |
Package Statistics | |
---|---|
Total Downloads: | 237,901 |
Monthly Downloads: | 321 |
Daily Downloads: | 15 |
Total Stars: | 34 |
Total Watchers: | 11 |
Total Forks: | 2 |
Total Open Issues: | 0 |
A simple Laravel 5-compatible breadcrumbs package. Generates Twitter Bootstrap-compatible output.
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
.
return array(
// ...
'providers' => array(
// ...
Creitive\Breadcrumbs\BreadcrumbsServiceProvider::class,
),
// ...
'aliases' => array(
// ...
'Breadcrumbs' => Creitive\Breadcrumbs\Facades\Breadcrumbs::class,
),
);
You're all set!
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.
For Laravel 4 support, visit the creitive/laravel4-breadcrumbs package.
The code is licensed under the MIT license, which is available in the LICENSE
file.