avernusx/rododendrone

There is no license information available for the latest version (dev-master) of this package.

Quick and robust scaffolding for Laravel with autogenerated admin panel

dev-master 2018-04-25 14:32 UTC

README

Quick and robust scaffolding for Laravel applications

Breadcrumbs

Create breadcrumbs.blade.php right in your views folder

<ul class="breadcrumbs hide-on-mobile clearfix">
    @foreach ($breadcrumbs as $name => $link)
        <li><a href="{{ $link }}">{{ $name }}</a></li>
    @endforeach
    <li>{{ $lastBreadcrumb }}</li>
</ul>

In controller

use Rododendrone\Frontend\Breadcrumbs;

Breadcrumbs::getInstance()
    ->add('First page', route('first-page'))
    ->add('Second page', route('second-page'))
    ->add('Third page', route('third-page'))
;