mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 13:51:44 +00:00
feat: update cart config with v3 driver options
This commit is contained in:
+18
-4
@@ -16,16 +16,30 @@
|
||||
* ---------------------------------------------------------------
|
||||
* Storage
|
||||
* ---------------------------------------------------------------
|
||||
* Supported: "session", "database", "redis", "null", "multi"
|
||||
*/
|
||||
'driver' => 'session',
|
||||
|
||||
'storage' => [
|
||||
'session',
|
||||
'database' => [
|
||||
'model' => '',
|
||||
'id' => '',
|
||||
'items' => '',
|
||||
'model' => '',
|
||||
'id' => '',
|
||||
'items' => '',
|
||||
'conditions' => '',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
* ---------------------------------------------------------------
|
||||
* Driver-specific options
|
||||
* ---------------------------------------------------------------
|
||||
*/
|
||||
'drivers' => [
|
||||
'redis' => [
|
||||
'connection' => 'default',
|
||||
'ttl' => 60 * 24 * 7, // 7 days in minutes
|
||||
],
|
||||
|
||||
'multi' => ['session', 'database'],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user