/**
  * @param       $section_id
  * @param array $filter
  * @param  null $limit
  *
  * @return \Illuminate\Database\Eloquent\Collection|static[]
  */
 public function getAll($filter = [], $limit = null)
 {
     $query = $this->category->roots();
     if (is_null($limit)) {
         return $query->get();
     }
     return $query->paginate();
 }
Ejemplo n.º 2
0
                <li>
                    <a href="{{route('apilogs.index')}}">Api Log</a>
                </li>

                <li>
                    <a href="{{route('tag.index')}}" class="user-profile dropdown-toggle">Tags</a>
                </li>


                <li>
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                        Content <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <?php 
$sections = \App\Nrna\Models\Category::roots()->get();
?>
                        @foreach($sections as $section)
                        <li><a href="{{route('post.index')}}?category={{$section->id}}"> {{$section->title}}</a>
                        </li>
                        @endforeach
                        <li><a href="{{route('category.index')}}"> Manage <i class="glyphicon glyphicon-cog pull-right"></i> </a>
                        </li>
                    </ul>
                </li>
                @endrole


                <li>
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                    <!-- <img class="img-responsive admin-image" src="{{url()}}/images/user.png" alt=""> -->