Example #1
0
 public function __construct()
 {
     $this->parentPages = Pages::whereNull('pages_id')->orderBy('position', 'asc')->get();
 }
Example #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $rows = Pages::whereNull('pages_id')->orderBy('position', 'asc')->paginate(10);
     return view('admin.pages.index', ['pages' => $rows, 'title' => 'Lista']);
 }