public function getPreview() { $id = Request::get('id', null); $obj = Form::findOrNew($id); $form = new FormDesign(); $content = $form->unparse_form($obj, [], ['action' => 'preview']); return view('admin.form.preview', ['obj' => $obj, 'text' => $content]); }