Skip to content

khlbrg/Simple-Breadcrumbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Breadcrumbs for Laravel 4

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()

Bitdeli Badge