public function edit($id) { $this->domainForm = \App\DomainForm::findorFail($id); if (is_null($this->domainForm)) { return redirect('forms'); } return view('forms.edit', compact_property($this, 'domainForm')); }
/** * Treat this method as a controller action. * Return view() or other content to display. */ public function run() { // return view("widgets.form_index", ['forms' => \App\DomainForm::all()]); }
/** * Treat this method as a controller action. * Return view() or other content to display. */ public function run() { return view("widgets.form_select", ['forms' => \App\DomainForm::lists('name', 'DomainID')->toArray()]); }