@@ 132-139 (lines=8) @@ | ||
129 | * |
|
130 | * @return \Illuminate\Database\Connection |
|
131 | */ |
|
132 | public function getDb() |
|
133 | { |
|
134 | $connection = $this->config->get('db.connection'); |
|
135 | if ($connection == 'default') { |
|
136 | return $this->db->connection(); |
|
137 | } |
|
138 | return $this->db->connection($connection); |
|
139 | } |
|
140 | ||
141 | /** |
|
142 | * Set locale and load texts |
@@ 94-101 (lines=8) @@ | ||
91 | * |
|
92 | * @return \Illuminate\Database\Connection |
|
93 | */ |
|
94 | public function getDb() |
|
95 | { |
|
96 | $connection = $this->config->get('db.connection'); |
|
97 | if ($connection == 'default') { |
|
98 | return $this->db->connection(); |
|
99 | } |
|
100 | return $this->db->connection($connection); |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * Get a cache driver instance. |