/** * Shows the form to update the page * GET /page/{id}/edit * @param $id * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function edit($id) { $page = $this->pages->findOrFail($id); return view("parshcms::pages.edit", ['page' => $page, 'themes' => $this->themes->all()]); }
/** * Retrieves a list of the resource * GET /themes */ public function index() { // @TODO: pagination return view('parshcms::themes.index', ['themes' => $this->themes->all()]); }