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.
db
1 parent 13665b7 commit c346a63Copy full SHA for c346a63
src/Illuminate/Database/Console/DbCommand.php
@@ -34,6 +34,14 @@ public function handle()
34
{
35
$connection = $this->getConnection();
36
37
+ if (! isset($connection['host'])) {
38
+ $this->components->error('No host specified for this database connection.');
39
+ $this->line(' Use the <options=bold>[--read]</> and <options=bold>[--write]</> options to specify a read or write connection.');
40
+ $this->newLine();
41
+
42
+ return Command::FAILURE;
43
+ }
44
45
(new Process(
46
array_merge([$this->getCommand($connection)], $this->commandArguments($connection)),
47
null,
0 commit comments