PHP code example of binjar / breadcrumbs

1. Go to this page and download the library: Download binjar/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/ */

    

binjar / breadcrumbs example snippets


'providers' => [
    Binjar\Breadcrumbs\ServiceProvider::class
];

'aliases' => [
    'Breadcrumbs' => Binjar\Breadcrumbs\Facade::class
];


	Breadcrumbs::push([
			'title' => 'Home',
			'route' => 'welcome',
			'icon' => 'glyphicon glyphicon-comment',
		]);

	Breadcrumbs::push([
			'title' => '@category',
			'route' => 'category',
			'parent' => 'welcome',
			'parameters' => ['category'],
			'icon' => 'glyphicon glyphicon-hdd',
		]);

	Breadcrumbs::push([
			'title' => '@item',
			'route' => 'item_details',
			'parameters' => ['category', 'item'],
			'parent' => 'category_items',
		]);


$parameters = [
        'item' => [
                'title' => 'Item Title',
                'value' => '1',
            ],
        'category' => [
                'title' => 'Books',
                'value' => '2',
            ],
    ];
    
{!! Breadcrumbs::render('route_name', $parameters) !!}