mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 22:01:48 +00:00
feat: update cart config with v3 driver options
This commit is contained in:
+18
-4
@@ -16,16 +16,30 @@
|
|||||||
* ---------------------------------------------------------------
|
* ---------------------------------------------------------------
|
||||||
* Storage
|
* Storage
|
||||||
* ---------------------------------------------------------------
|
* ---------------------------------------------------------------
|
||||||
|
* Supported: "session", "database", "redis", "null", "multi"
|
||||||
*/
|
*/
|
||||||
'driver' => 'session',
|
'driver' => 'session',
|
||||||
|
|
||||||
'storage' => [
|
'storage' => [
|
||||||
'session',
|
|
||||||
'database' => [
|
'database' => [
|
||||||
'model' => '',
|
'model' => '',
|
||||||
'id' => '',
|
'id' => '',
|
||||||
'items' => '',
|
'items' => '',
|
||||||
'conditions' => '',
|
'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