File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
// Table name - name of the table that stores your operation entries
9
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 ,
10
14
];
Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ public function __construct(array $attributes = [])
34
34
$ this ->table = OneTimeOperationManager::getTableName ();
35
35
}
36
36
37
+ public function getConnectionName ()
38
+ {
39
+ return config ('one-time-operations.connection ' , $ this ->connection );
40
+ }
41
+
37
42
protected static function newFactory (): OperationFactory
38
43
{
39
44
return new OperationFactory ();
You can’t perform that action at this time.
0 commit comments