PHP code example of lamalama / laravel-breadcrumbs
1. Go to this page and download the library: Download lamalama/laravel-breadcrumbs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lamalama / laravel-breadcrumbs example snippets
Breadcrumbs::trail([
'Work' => '/work',
'Commerce' => '/work/commerce',
'Sneaker District' => '/work/commerce/sneaker-district'
]);
{!! Breadcrumbs::generate() !!}
@if(Breadcrumbs::exists())
<section>
{!! Breadcrumbs::generate() !!}
</section>
@endif
bash
php artisan vendor:publish --provider="LamaLama\Breadcrumbs\BreadcrumbsServiceProvider" --tag="config"