src/Foundation/Application.php
public function hasDatabase()
    {
        try {
            $hasDatabase = is_null($this->hasDatabase)
                ? $this['db.connection']->getSchemaBuilder()->hasTable('settings')
                : $this->hasDatabase;
        }
        catch (Exception $ex) {
            $hasDatabase = FALSE;
        }

        return $this->hasDatabase = $hasDatabase;
    }
public function hasDatabase()
    {
        try {
            $hasDatabase = is_null($this->hasDatabase)
                ? $this['db.connection']->getSchemaBuilder()->hasTable('settings')
                : $this->hasDatabase;
        }
        catch (Exception $ex) {
            $hasDatabase = FALSE;
        }

        return $this->hasDatabase = $hasDatabase;
    }
Returns true if a database connection is present.
@return boolean