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 77
88 // Table name - name of the table that stores your operation entries
99 '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 ,
1014];
Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ public function __construct(array $attributes = [])
3434 $ this ->table = OneTimeOperationManager::getTableName ();
3535 }
3636
37+ public function getConnectionName ()
38+ {
39+ return config ('one-time-operations.connection ' , $ this ->connection );
40+ }
41+
3742 protected static function newFactory (): OperationFactory
3843 {
3944 return new OperationFactory ();
You can’t perform that action at this time.
0 commit comments