protected function obtainMySQLDatabaseInfoFromEnv($file)
    {
        $env = (new Loader($file))->parse()->toArray();

        if (! array_key_exists('DB_CONNECTION', $env)  || $env['DB_CONNECTION'] != 'mysql') {
            return null;
        }

        if (! array_key_exists('DB_DATABASE', $env) ||
             ! array_key_exists('DB_USERNAME', $env) ||
             ! array_key_exists('DB_PASSWORD', $env)) {
            return null;
        }

        return [
          'name' => $env['DB_DATABASE'],
          'user' => $env['DB_USERNAME'],
          'password' => $env['DB_PASSWORD'],
        ];
    }