This package helps you to generate the breadcrumb component for your app in Laravel
This package is currently compatible with Laravel 5.3+
Using Composer:
To install this component using composer, simply run this command on the base path of your Laravel project:
composer require johndev/breadcrumbs
or add "johndev/breadcrumbs": "^0.2.0"
to your composer.json
file and then run the command:
composer update
Next, add the BreadcrumbsServiceProvider container to the Package Service Providers section in provider element on your app.php config file:
'providers' => [
// ...
JohnDev\Breadcrumbs\BreadcrumbsServiceProvider::class,
// ...
],
Finally add to aliases element in your app.php config file:
'Breadcrumbs' => JohnDev\Breadcrumbs\Facades\Breadcrumbs::class,
Simply call the function Breadcrumbs::render()
in apropiate section on your layout template or view.