We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1008e8 commit 788ae50Copy full SHA for 788ae50
src/Dotenv.php
@@ -254,7 +254,7 @@ public function getDatabaseName(): string
254
return $this->databaseName;
255
}
256
$result = parse_url($this->get('database_url'), PHP_URL_PATH);
257
- if (NULL === $result || trim($result) === '/') {
+ if (NULL === $result || trim($result) === '/' || trim($result) === '') {
258
// Multi-site configuration detected. Try to use the DATABASE_NAME variable.
259
$result = $this->get('database_name');
260
if (! $result) {
0 commit comments