1. Go to this page and download the library: Download esign/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/ */
esign / laravel-breadcrumbs example snippets
use Esign\Breadcrumbs\Breadcrumb;
use Esign\Breadcrumbs\Facades\Breadcrumbs;
Breadcrumbs::add('Home', 'http://example.com');
Breadcrumbs::add(Breadcrumb::create('Home', 'http://example.com'));
use Esign\Breadcrumbs\Breadcrumb;
use Esign\Breadcrumbs\Facades\Breadcrumbs;
Breadcrumbs::add([
'Home' => 'https://www.example.com',
'Blog' => null,
]);
Breadcrumbs::add([
Breadcrumb::create('Home', 'https://www.example.com'),
Breadcrumb::create('Blog'),
]);
use Esign\Breadcrumbs\Breadcrumb;
use Esign\Breadcrumbs\Facades\Breadcrumbs;
Breadcrumbs::prepend('Home', route('home'));
Breadcrumbs::prepend(Breadcrumb::create('Home', route('home')));
use Esign\Breadcrumbs\Facades\Breadcrumbs;
Breadcrumbs::toJsonLd();