laravel-nestedset icon indicating copy to clipboard operation
laravel-nestedset copied to clipboard

global scopes

Open ven0ms99 opened this issue 7 months ago • 0 comments

on my model, I have a global scope:

static::addGlobalScope('visibility', function (Builder $builder) {
            $builder->where('visibility', 'public');
        });

Querying Model::isBroken() generates a broken query:

where `models`.`visibility` = public and `visibility` = public

Does nested-set not support global scopes?

ven0ms99 avatar Mar 12 '25 14:03 ven0ms99