Exemple #1
0
 /**
  * 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()]);
 }
Exemple #2
0
 /**
  * Retrieves a list of the resource
  * GET /themes
  */
 public function index()
 {
     // @TODO: pagination
     return view('parshcms::themes.index', ['themes' => $this->themes->all()]);
 }