This is how you get the list of databases using Laravel.
$databases = Schema::getConnection()->getDoctrineSchemaManager()->listDatabases();