public function setOption($key) { $value = Input::get('value'); $this->config->set($key, $value); $status = $this->config->save(); return Response::json($status); }
/** * Run the action and return a response for the user. * * @return void */ protected function run() { foreach ($this->input as $key => $value) { $key = 'o_' . $key; if ($this->config->has($key)) { $this->config->set($key, $value); $this->raise(new OptionWasChanged($key, $value)); } } $this->config->save(); }