set() public method

public set ( $key, $value )
 public function setOption($key)
 {
     $value = Input::get('value');
     $this->config->set($key, $value);
     $status = $this->config->save();
     return Response::json($status);
 }
示例#2
0
 /**
  * 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();
 }