public function update($id) { $this->validate($this->request); $response = $this->copy->updateForSlug($id, $this->request->only('value')); if ($response) { return redirect()->route('admin.copy.index')->with('success', 'Copy updated successfully.'); } }
public function render($slug, $options = []) { $setting = $this->setting->forSlug($slug); return $setting->value; }
public function render($slug, $fallback = '') { $copy = $this->copy->forSlug($slug); return $copy ? $copy->value : $fallback; }