PHP code example of hoaaah / laravel-bootstrap-breadcrumb

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

    

hoaaah / laravel-bootstrap-breadcrumb example snippets


use hoaaah\LaravelBreadcrumb\Breadcrumb as Breadcrumb;

// ..........

    {!! Breadcrumb::widget([
        'items' => [
            ['label' => 'Link 1'],
            ['url' => route('route.name'), 'label' => 'Link 2'],
            ['label' => $this->title]
        ]
    ]) !!}

use hoaaah\LaravelBreadcrumb\Breadcrumb as Breadcrumb;

// ..........

    {!! Breadcrumb::widget([
        'homeUrl' => route('home.dashboard'),
        'homeText' => 'Costumize Home Text',
        'items' => [
            ['label' => 'Link 1'],
            ['url' => route('route.name'), 'label' => 'Link 2'],
            ['label' => $this->title]
        ]
    ]) !!}