protected function addUndoArchive(Builder $builder): void
    {
        $builder->macro('undoArchive', function (Builder $builder) {
            $builder->withArchived();

            return $builder->update(['archived_at' => null]);
        });
    }
protected function addUndoArchive(Builder $builder): void
    {
        $builder->macro('undoArchive', function (Builder $builder) {
            $builder->withArchived();

            return $builder->update(['archived_at' => null]);
        });
    }
protected function addUndoArchive ( Builder $ builder ) : void { $ builder -> macro ( 'undoArchive' , function ( Builder $ builder ) { $ builder -> withArchived ( ) ; return $ builder -> update ( [ 'archived_at' => null ] ) ; } ) ; }
Add the `undoArchive` extension to the builder.

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