public function updateById($id, array $inputs)
    {
        $inputs = $this->purifyInputs($inputs);

        $model = $this->model->findOrFail($id);

        return $model->update($inputs);
    }
public function updateById($id, array $inputs)
    {
        $inputs = $this->purifyInputs($inputs);

        $model = $this->model->findOrFail($id);

        return $model->update($inputs);
    }
public function updateById ( $ id , array $ inputs ) { $ inputs = $ this -> purifyInputs ( $ inputs ) ; $ model = $ this -> model -> findOrFail ( $ id ) ; return $ model -> update ( $ inputs ) ; }
Update an existing record, retrieved by id.

@param int $id
@param array $inputs

@return mixed
Update an existing record retrieved by id .