protected function addOnlyNotKept(Builder $builder): void
    {
        $builder->macro('onlyNotKept', function (Builder $builder) {
            return $builder->withoutGlobalScope($this)->where('is_kept', 0);
        });
    }
protected function addOnlyNotKept(Builder $builder): void
    {
        $builder->macro('onlyNotKept', function (Builder $builder) {
            return $builder->withoutGlobalScope($this)->where('is_kept', 0);
        });
    }
protected function addOnlyNotKept ( Builder $ builder ) : void { $ builder -> macro ( 'onlyNotKept' , function ( Builder $ builder ) { return $ builder -> withoutGlobalScope ( $ this ) -> where ( 'is_kept' , 0 ) ; } ) ; }
Add the `onlyNotKept` extension to the builder.

@param \Illuminate\Database\Eloquent\Builder $builder
@return void
Add the onlyNotKept extension to the builder .