2017 © Pedro Peláez
 

library breadcrumbs

This build breadcumbs easily

image

binjar/breadcrumbs

This build breadcumbs easily

  • Sunday, May 21, 2017
  • by shantocse
  • Repository
  • 2 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Breadcrumbs - Laravel

Build breadcrumbs easily with this package, (*1)

Installation

$ composer require binjar/breadcrumbs

Add the service provider and facade in config/app.php, (*2)

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

```php 'aliases' => [ 'Breadcrumbs' => Binjar\Breadcrumbs\Facade::class ];, (*3)

## Usage
Create a file called `routes/breadcrumbs.php` that looks like this:

```php
 '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',
        ]);

?>

Finally, call Breadcrumbs::render() in the view template for each page, passing it the name of route and any additional parameters, (*4)

$parameters = [
        'item' => [
                'title' => 'Item Title',
                'value' => '1',
            ],
        'category' => [
                'title' => 'Books',
                'value' => '2',
            ],
    ];

{!! Breadcrumbs::render('route_name', $parameters) !!}

The Versions

21/05 2017

dev-master

9999999-dev

This build breadcumbs easily

  Sources   Download

MIT License

by Touhidur Rahman

21/05 2017

1.0.2

1.0.2.0

This build breadcumbs easily

  Sources   Download

MIT License

by Touhidur Rahman

21/05 2017

1.0.1

1.0.1.0

This build breadcumbs easily

  Sources   Download

MIT License

by Touhidur Rahman

21/05 2017

1.0

1.0.0.0

This build breadcumbs easily

  Sources   Download

MIT License

by Touhidur Rahman