Пример #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param int|string $id
  *
  * @return \Illuminate\View\View
  */
 public function edit($id)
 {
     $guide = $this->guide->locate($id);
     $this->authorize('manage.guides');
     $form = $this->presenter->form($guide);
     return view('pages.resources.guides.edit', compact('form'));
 }
Пример #2
0
 /**
  * Displays the last 5 created guides.
  *
  * @param mixed $guide
  *
  * @return \Orchestra\Contracts\Html\Builder
  */
 public function guides($guide)
 {
     $presenter = new GuidePresenter($this->form, $this->table);
     return $presenter->tableLast($guide);
 }