public function setModelData($modelData) { Settings::$modelData = $modelData; return $modelData; }
/** * 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); }