Askedio\SoftCascade\SoftCascade::execute PHP Method

execute() private method

Execute delete, or restore.
private execute ( Illuminate\Database\Eloquent\Relations\Relation $relation ) : void
$relation Illuminate\Database\Eloquent\Relations\Relation
return void
    private function execute($relation)
    {
        $this->runNestedRelations($relation);
        $relation->{$this->direction}();
    }