protected function addKeep(Builder $builder): void
    {
        $builder->macro('keep', function (Builder $builder) {
            $builder->withNotKept();

            return $builder->update(['is_kept' => 1]);
        });
    }
protected function addKeep(Builder $builder): void
    {
        $builder->macro('keep', function (Builder $builder) {
            $builder->withNotKept();

            return $builder->update(['is_kept' => 1]);
        });
    }
protected function addKeep ( Builder $ builder ) : void { $ builder -> macro ( 'keep' , function ( Builder $ builder ) { $ builder -> withNotKept ( ) ; return $ builder -> update ( [ 'is_kept' => 1 ] ) ; } ) ; }
Add the `keep` extension to the builder.

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