update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -0,0 +1,63 @@
################################################################################
Outputting Breadcrumbs
################################################################################
Call ``Breadcrumbs::render()`` in the view template for each page, passing it the name of the breadcrumb to use and any additional parameters.
.. only:: html
.. contents::
:local:
================================================================================
With Blade
================================================================================
In the page (e.g. ``resources/views/home.blade.php``):
.. code-block:: html+php
{!! Breadcrumbs::render('home') !!}
Or with a parameter:
.. code-block:: html+php
{!! Breadcrumbs::render('category', $category) !!}
================================================================================
With Blade layouts and @section
================================================================================
In the page (e.g. ``resources/views/home.blade.php``):
.. code-block:: html+php
@extends('layout.name')
@section('breadcrumbs', Breadcrumbs::render('home'))
In the layout (e.g. ``resources/views/app.blade.php``):
.. code-block:: html+php
@yield('breadcrumbs')
================================================================================
Pure PHP (without Blade)
================================================================================
In the page (e.g. ``resources/views/home.php``):
.. code-block:: html+php
<?= Breadcrumbs::render('home') ?>
Or use the long-hand syntax if you prefer:
.. code-block:: html+php
<?php echo Breadcrumbs::render('home') ?>