protected function addUndoInvite(Builder $builder): void
    {
        $builder->macro('undoInvite', function (Builder $builder) {
            return $builder->update(['is_invited' => 0]);
        });
    }
protected function addUndoInvite(Builder $builder): void
    {
        $builder->macro('undoInvite', function (Builder $builder) {
            return $builder->update(['is_invited' => 0]);
        });
    }
protected function addUndoInvite ( Builder $ builder ) : void { $ builder -> macro ( 'undoInvite' , function ( Builder $ builder ) { return $ builder -> update ( [ 'is_invited' => 0 ] ) ; } ) ; }
Add the `undoInvite` extension to the builder.

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