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

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