public function preview($id) { $form = $this->forms->getById($id); return view('forms.bootstrap.preview', compact('form')); }
/** * 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()); }