Esempio n. 1
0
 public function preview($id)
 {
     $form = $this->forms->getById($id);
     return view('forms.bootstrap.preview', compact('form'));
 }
Esempio n. 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $form = $this->forms->getById($id);
     $form->delete();
     return $this->respondWithItem($form, new FormTransformer());
 }