File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
'method ' => 'database ' ,
18
18
19
+ /*
20
+ |--------------------------------------------------------------------------
21
+ | DB Table Name
22
+ |--------------------------------------------------------------------------
23
+ |
24
+ | You can define the table name of the key value storage.
25
+ |
26
+ */
27
+
28
+ 'table_name ' => 'kv_storage ' ,
29
+
19
30
/*
20
31
|--------------------------------------------------------------------------
21
32
| Storage Driver
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ class KVOption extends Model
18
18
*
19
19
* @var string
20
20
*/
21
- protected $ table = 'kv_storage ' ;
21
+ public function getTable ()
22
+ {
23
+ return config ('kvstorage.table_name ' , 'kv_storage ' );
24
+ }
22
25
23
26
/**
24
27
* The attributes that are mass assignable.
You can’t perform that action at this time.
0 commit comments