2017 © Pedro Peláez
 

library laravel-breadcrumb

Breadcrumb for Laravel

image

mares29/laravel-breadcrumb

Breadcrumb for Laravel

  • Thursday, February 1, 2018
  • by mares29
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Breadcrumb for Laravel 5

This package provide simple way to implement breadcrumb for your laravel 5 application., (*1)

Install

Via Composer, (*2)

``` bash $ composer require mares29/laravel-breadcrumb, (*3)


Laravel 5.5+ automaticly register service provider and set Alias thanks to auto-discovery. With lower laravel version add to **app.php** ``` php 'providers' => [ \Mares29\Breadcrumb\BreadcrumbServiceProvider::class, ] 'aliases' => [ 'Breadcrumb' => \Mares29\Breadcrumb\Facades\BreadcrumbFacade::class, ]

Usage

Use Facade to add breadcrumb links., (*4)

``` php Breadcrumb::addLink("link title", "link route");, (*5)


You can also add more links. ``` php Breadcrumb::addLink("link title", "link route") ->addLink("another link title", "link route");

And finaly render breadcrumb using render method in blade template., (*6)

``` php {!! Breadcrumb::render() !!}, (*7)


By default, first link (home link) is set automaticly with `config('app.name')` and links to `url("/")`. You can modify this by ``` php Breadcrumb::setHomeLink("new home link", "/home.html");

Need to modify breadcrumb html? Use vendor:publish command and export breadcrumb view into resources folder., (*8)

terminal php artisan vendor:publish --provider="Mares29\Breadcrumb\BreadcrumbServiceProvider", (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

01/02 2018

dev-master

9999999-dev https://github.com/mares29/laravel-breadcrumb

Breadcrumb for Laravel

  Sources   Download

MIT

laravel breadcrumb mares29

23/01 2018

1.0

1.0.0.0 https://github.com/mares29/laravel-breadcrumb

Breadcrumb for Laravel

  Sources   Download

MIT

laravel breadcrumb mares29