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 9b635f2 commit 0043076Copy full SHA for 0043076
database/migrations/20181113071924_create_rules_table.php
@@ -29,9 +29,10 @@ protected function init()
29
*/
30
protected function getDbConfig(): array
31
{
32
- $default = config('tauthz.database.connection') ?: config('database.default');
33
-
34
- $config = config("database.connections.{$default}");
+ $default = config('tauthz.default');
+ $connection = config("tauthz.enforcers.{$default}.database.connection") ?: config('database.default');
+
35
+ $config = config("database.connections.{$connection}");
36
37
if (0 == $config['deploy']) {
38
$dbConfig = [
0 commit comments