contactContent = $contactContent; } public function all(){ return $this->contactContent::firstOrfail(); } public function update($data, $id) { $contactContent = $this->contactContent::where('id', $id)->first(); $contactContent->fill($data)->save(); return $contactContent; } public function edit($id) { $contactContent = $this->contactContent->findOrFail($id); return $contactContent; } }