We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
php artisan db
1 parent 03c0525 commit f27fa00Copy full SHA for f27fa00
Console/DbCommand.php
@@ -3,6 +3,7 @@
3
namespace Illuminate\Database\Console;
4
5
use Illuminate\Console\Command;
6
+use Illuminate\Support\ConfigurationUrlParser;
7
use Symfony\Component\Process\Process;
8
use UnexpectedValueException;
9
@@ -57,6 +58,10 @@ public function getConnection()
57
58
throw new UnexpectedValueException("Invalid database connection [{$db}].");
59
}
60
61
+ if (! empty($connection['url'])) {
62
+ $connection = (new ConfigurationUrlParser)->parseConfiguration($connection);
63
+ }
64
+
65
return $connection;
66
67
0 commit comments