protected function getDatabaseInformation()
    {
        $this->dbInfo['connection'] = env('DB_CONNECTION');
        $this->dbInfo['host'] = env('DB_HOST');
        $this->dbInfo['database'] = env('DB_DATABASE');
        $this->dbInfo['username'] = env('DB_USERNAME');
        $this->dbInfo['password'] = env('DB_PASSWORD');
        $this->dbInfo['port'] = env('DB_PORT');

        if (!check_db_connection()) {
            $this->error('Please setup your database information first!');
            die();
        }

        $this->info('Database OK...');
    }
protected function getDatabaseInformation()
    {
        $this->dbInfo['connection'] = env('DB_CONNECTION');
        $this->dbInfo['host'] = env('DB_HOST');
        $this->dbInfo['database'] = env('DB_DATABASE');
        $this->dbInfo['username'] = env('DB_USERNAME');
        $this->dbInfo['password'] = env('DB_PASSWORD');
        $this->dbInfo['port'] = env('DB_PORT');

        if (!check_db_connection()) {
            $this->error('Please setup your database information first!');
            die();
        }

        $this->info('Database OK...');
    }
protected function getDatabaseInformation ( ) { $ this -> dbInfo [ 'connection' ] = env ( 'DB_CONNECTION' ) ; $ this -> dbInfo [ 'host' ] = env ( 'DB_HOST' ) ; $ this -> dbInfo [ 'database' ] = env ( 'DB_DATABASE' ) ; $ this -> dbInfo [ 'username' ] = env ( 'DB_USERNAME' ) ; $ this -> dbInfo [ 'password' ] = env ( 'DB_PASSWORD' ) ; $ this -> dbInfo [ 'port' ] = env ( 'DB_PORT' ) ; if ( ! check_db_connection ( ) ) { $ this -> error ( 'Please setup your database information first!' ) ; die ( ) ; } $ this -> info ( 'Database OK...' ) ; }
Get database information
Get database information