public function update(Model $entity, array $attributes)
    {
        if ($entity->update($attributes)) {
            $this->flushCache();

            return true;
        }

        return false;
    }
public function update(Model $entity, array $attributes)
    {
        if ($entity->update($attributes)) {
            $this->flushCache();

            return true;
        }

        return false;
    }
public function update ( Model $ entity , array $ attributes ) { if ( $ entity -> update ( $ attributes ) ) { $ this -> flushCache ( ) ; return true ; } return false ; }
Update an entity with the given attributes and persist it

@param Model $entity
@param array $attributes

@return bool
Update an entity with the given attributes and persist it