protected function addUndoExpire(Builder $builder): void
    {
        $builder->macro('undoExpire', function (Builder $builder) {
            $builder->withExpired();

            return $builder->update(['is_expired' => 0]);
        });
    }
protected function addUndoExpire(Builder $builder): void
    {
        $builder->macro('undoExpire', function (Builder $builder) {
            $builder->withExpired();

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

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