Пример #1
0
 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'));
 }
Пример #2
0
 /**
  * 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()]);
 }
Пример #3
0
 /**
  * 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()]);
 }