PHP code example of drahosistvan / laravel-breadcrumbs

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

    

drahosistvan / laravel-breadcrumbs example snippets


//With facade
Breadcrumbs::add('My page', '/page/xy');

//Adding multiple elements to Breadcrumbs
Breadcrumbs::add('My page', '/page/xy')->add('My page', '/page/xy');

    protected $breadcrumb;

    public function __construct() {
        $this->breadcrumb = app('Breadcrumbs');
    }