We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33292b8 + 1e16cdc commit ef528f8Copy full SHA for ef528f8
config/one-time-operations.php
@@ -7,4 +7,8 @@
7
8
// Table name - name of the table that stores your operation entries
9
'table' => 'operations',
10
+
11
+ // Database Connection Name - Change the model connection, support for Multitenancy
12
+ // Only change when you want to deviate from your system default repository
13
+ 'connection' => null,
14
];
src/Models/Operation.php
@@ -34,6 +34,11 @@ public function __construct(array $attributes = [])
34
$this->table = OneTimeOperationManager::getTableName();
35
}
36
37
+ public function getConnectionName()
38
+ {
39
+ return config('one-time-operations.connection', $this->connection);
40
+ }
41
42
protected static function newFactory(): OperationFactory
43
{
44
return new OperationFactory();
0 commit comments