hoaaah / laravel-bootstrap-breadcrumb
A packages for create bootstrap breadcrumb dynamically.
Installs: 1 233
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.9
This package is auto-updated.
Last update: 2024-11-05 17:49:10 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
composer require hoaaah/laravel-bootstrap-breadcrumb:^2.0
or add
"hoaaah/laravel-bootstrap-breadcrumb": "^2.0"
to the require section of your composer.json
file.
Usage
You can use this helper in your view. It also support blade template. This breadcrumb support Boostrap 4 Breadcrumb, but you can configure so this widget can be used in other template as well.
Breadcrumb Skeleton
This helper consist of this following code.
use hoaaah\LaravelBreadcrumb\Breadcrumb as Breadcrumb; // .......... {!! Breadcrumb::widget([ 'items' => [ ['label' => 'Link 1'], ['url' => route('route.name'), 'label' => 'Link 2'], ['label' => $this->title] ] ]) !!}
Costum Homepage
This helper use url('\')
as default home Url. You can change your home url with homeUrl
method. The following code as an example.
use hoaaah\LaravelBreadcrumb\Breadcrumb as Breadcrumb; // .......... {!! Breadcrumb::widget([ 'homeUrl' => route('home.dashboard'), 'homeText' => 'Costumize Home Text', 'items' => [ ['label' => 'Link 1'], ['url' => route('route.name'), 'label' => 'Link 2'], ['label' => $this->title] ] ]) !!}
Other Method
Creator
This asset wrapper was created by and is maintained by hoaaah.