Example #1
0
 public function setModelData($modelData)
 {
     Settings::$modelData = $modelData;
     return $modelData;
 }
Example #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function edit()
 {
     // get the target id
     $id = Settings::$id;
     if (!$this->cms->controller->isDefault()) {
         return Settings::$model;
     }
     Settings::$modelData = Settings::$model->where('id', $id)->first();
     return view('cms::modules.model.edit')->with('id', Settings::$id)->with('data', Settings::$modelData);
 }