public function reset(?string $database, $id = null, bool $pretend = false): void
    {
        if (! \is_null($id)) {
            $this->executeFor($id, function ($entity) use ($database, $pretend) {
                $this->runReset($entity, $database, $pretend);
            });

            return;
        }

        $this->executeForEach(function ($entity) use ($database, $pretend) {
            $this->runReset($entity, $database, $pretend);
        });
    }
public function reset(?string $database, $id = null, bool $pretend = false): void
    {
        if (! \is_null($id)) {
            $this->executeFor($id, function ($entity) use ($database, $pretend) {
                $this->runReset($entity, $database, $pretend);
            });

            return;
        }

        $this->executeForEach(function ($entity) use ($database, $pretend) {
            $this->runReset($entity, $database, $pretend);
        });
    }
public function reset ( ? string $ database , $ id = null , bool $ pretend = false ) : void { if ( ! \ is_null ( $ id ) ) { $ this -> executeFor ( $ id , function ( $ entity ) use ( $ database , $ pretend ) { $ this -> runReset ( $ entity , $ database , $ pretend ) ; } ) ; return ; } $ this -> executeForEach ( function ( $ entity ) use ( $ database , $ pretend ) { $ this -> runReset ( $ entity , $ database , $ pretend ) ; } ) ; }
Reset migrations.

@param  string|null  $database
@param  mixed|null  $id
@param  bool  $pretend

@return void
Reset migrations .