PHP code example of brnbio / laravel-breadcrumbs

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

    

brnbio / laravel-breadcrumbs example snippets


breadcrumbs()->add('Items', route('index'));
breadcrumbs()->add('Item detail');

breadcrumbs()->prepend('Home', '/');

// with icon:
// because breadcrumb text is always escaped
// you have to add escape=false
breadcrumbs()->prepend('<i class="fa fas-home" />', route('home'), ['escape' => false]);


breadcrumbs()->render();

@breadcrumb('Home', '/')
@breadcrumb('Items', route('index'))
@breadcrumb('Item detail')

@section('content')
    
    @breadcrumbs()

@endsection