src/Repositories/Repository.php
public function update($id, $key, $value=null)
     {
         $model =  $this->model->find($id);

         if (is_array($key))
             $model->update($key);
         else
             $model->{$key}= $value;

         $model->save();
     }
public function update($id, $key, $value=null)
     {
         $model =  $this->model->find($id);

         if (is_array($key))
             $model->update($key);
         else
             $model->{$key}= $value;

         $model->save();
     }
public function update ( $ id , $ key , $ value = null ) { $ model = $ this -> model -> find ( $ id ) ; if ( is_array ( $ key ) ) $ model -> update ( $ key ) ; else $ model -> { $ key } = $ value ; $ model -> save ( ) ; }
update the status of the model

@param  integer  $id
@param  string   $key
@param  string   $value
@return Model
update the status of the model