src/MultiLang/Console/ExportCommand.php 1 location
|
@@ 218-226 (lines=9) @@
|
215 |
|
* |
216 |
|
* @return \Illuminate\Database\Connection |
217 |
|
*/ |
218 |
|
protected function getDatabase() |
219 |
|
{ |
220 |
|
$connection = config('multilang.db.connection', 'default'); |
221 |
|
$db = App::make(Database::class); |
222 |
|
if ($connection == 'default') { |
223 |
|
return $db->connection(); |
224 |
|
} |
225 |
|
return $db->connection($connection); |
226 |
|
} |
227 |
|
} |
228 |
|
|
src/MultiLang/Console/ImportCommand.php 1 location
|
@@ 186-194 (lines=9) @@
|
183 |
|
* |
184 |
|
* @return \Illuminate\Database\Connection |
185 |
|
*/ |
186 |
|
protected function getDatabase() |
187 |
|
{ |
188 |
|
$connection = config('multilang.db.connection', 'default'); |
189 |
|
$db = App::make(Database::class); |
190 |
|
if ($connection == 'default') { |
191 |
|
return $db->connection(); |
192 |
|
} |
193 |
|
return $db->connection($connection); |
194 |
|
} |
195 |
|
} |
196 |
|
|