Domain\Repositories\Traits\DeleteTrait::delete PHP Method

delete() public method

Destroy item of model by id :id.
public delete ( integer $id ) : integer
$id integer
return integer
    public function delete($id)
    {
        try {
            return $this->model->destroy($id);
        } catch (Exception $e) {
        }
        throw new RepositoryException('Could not delete the record. You must delete all relationships before proceeding.');
    }