make sure you have used bootstrap min js first
this is normal bootstrap breadcrumb
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>
</nav>
put at the place or blade where you need breadcrumb
this following code is only required to be placed in laravel
<ol class="breadcrumb">
<li><a href="{{route('home')}}"><i class="fa fa-home"></i>Home</a></li>
<?php $segments = ''; ?> @foreach(Request::segments() as $segment) <?php $segments .= '/'.$segment; ?> <li>
<a href="{{ $segments }}">{{$segment}}</a>
</li>
@endforeach
</ol>
<ul>
<li><a href="{{route('front.index')}}">गृहपृष्ठ</a></li>
<?php $segments = ''; ?> @foreach(Request::segments() as $segment) <?php $segments .= '>'.$segment; ?> <li>
<a href="{{ $segments }}">{{$segment}}</a>
</li>
@endforeach
</ul>
Comments
Post a Comment