protected function addUndoClose(Builder $builder): void
    {
        $builder->macro('undoClose', function (Builder $builder) {
            $builder->withClosed();

            return $builder->update(['is_closed' => 0]);
        });
    }
protected function addUndoClose(Builder $builder): void
    {
        $builder->macro('undoClose', function (Builder $builder) {
            $builder->withClosed();

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

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