League\FactoryMuffin\Stores\RepositoryStore::delete PHP Method

delete() protected method

Delete our object from the db.
protected delete ( object $model ) : boolean
$model object The model instance.
return boolean
    protected function delete($model)
    {
        $method = $this->methods['delete'];
        if (!method_exists($this->storage, $method) || !is_callable([$this->storage, $method])) {
            throw new DeleteMethodNotFoundException(get_class($this->storage), $method);
        }
        $this->storage->{$method}($model);
        return true;
    }