Package Data | |
---|---|
Maintainer Username: | erikssonandreas |
Maintainer Contact: | erikssonandreas@me.com (Andreas Eriksson) |
Package Create Date: | 2013-11-25 |
Package Last Update: | 2018-05-18 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-30 03:05:48 |
Package Statistics | |
---|---|
Total Downloads: | 274 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 1 |
This is a package for Laravel 4.
###Add to your laravel project
Install by adding to yur composer.json
"ekhaga/breadcrumbs": "dev-master"
'providers' => array(
...,
'Oak\Breadcrumbs\BreadcrumbsServiceProvider',
)
May skip this and just import/use it in the controller.
'aliases' => array(
...,
'Breadcrumbs' => 'Oak\Breadcrumbs\Facades\Breadcrumbs'
)
Add an item
Breadcrumbs::add('Home', '/');
Enable divider
Breadcrumbs::enableDivider();
Set divider character
Breadcrumbs::setDivider('→');
Set a css class to the list
Breadcrumbs::cssClass('yourclass')
Render the crumbs This will render the crumbs in a ul list if there is any crumbs
Breadcrumbs::render()
Get all crumbs This function will return all breadcrumbs in an array
Breadcrumbs::all()