protected function addWithEnded(Builder $builder): void
    {
        $builder->macro('withEnded', function (Builder $builder) {
            return $builder->withoutGlobalScope($this);
        });
    }
protected function addWithEnded(Builder $builder): void
    {
        $builder->macro('withEnded', function (Builder $builder) {
            return $builder->withoutGlobalScope($this);
        });
    }
protected function addWithEnded ( Builder $ builder ) : void { $ builder -> macro ( 'withEnded' , function ( Builder $ builder ) { return $ builder -> withoutGlobalScope ( $ this ) ; } ) ; }
Add the `withEnded` extension to the builder.

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