/** * Display a listing of the resource. * * @return \Illuminate\View\View */ public function index() { $this->data['user'] = $this->auth->user(); $this->data['pages'] = $this->page->orderBy('id', 'desc')->get(); return view('admin.pages.index', $this->data); }