protected function verifyEnvironment(): bool
    {
        if ($this->option('force') || $this->config->isSafe()) {
            //Safe to run
            return true;
        }

        $this->writeln("<fg=red>Confirmation is required to run migrations!</fg=red>");

        if (!$this->askConfirmation()) {
            $this->writeln("<comment>Cancelling operation...</comment>");

            return false;
        }

        return true;
    }
protected function verifyEnvironment(): bool
    {
        if ($this->option('force') || $this->config->isSafe()) {
            //Safe to run
            return true;
        }

        $this->writeln("<fg=red>Confirmation is required to run migrations!</fg=red>");

        if (!$this->askConfirmation()) {
            $this->writeln("<comment>Cancelling operation...</comment>");

            return false;
        }

        return true;
    }
protected function verifyEnvironment ( ) : bool { if ( $ this -> option ( 'force' ) || $ this -> config -> isSafe ( ) ) { //Safe to run return true ; } $ this -> writeln ( "<fg=red>Confirmation is required to run migrations!</fg=red>" ) ; if ( ! $ this -> askConfirmation ( ) ) { $ this -> writeln ( "<comment>Cancelling operation...</comment>" ) ; return false ; } return true ; }
Check if current environment is safe to run migration.

@return bool
Check if current environment is safe to run migration .