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

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