PHP code example of lrpasquetto / sessionsandpages
1. Go to this page and download the library: Download lrpasquetto/sessionsandpages library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lrpasquetto / sessionsandpages example snippets
<ul class="menu nav navbar-nav multi-level" >
<!-- SESSÕES E PAGINAS-->
@foreach($sessions as $session)
<li @if($session->hasChild() || $session->hasPages()) class="dropdown-submenu" @endif>
<a href="#" @if($session->hasChild()) href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" @endif>
{{$session->name}}
</a>
@if($session->hasChild())
{!! $session->printChildsFront($session->id) !!}
@else
{!! $session->printPagesFront($session->id) !!}
@endif
</li>
@endforeach
</ul>