cart.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default tax rate
  6. |--------------------------------------------------------------------------
  7. |
  8. | This default tax rate will be used when you make a class implement the
  9. | Taxable interface and use the HasTax trait.
  10. |
  11. */
  12. 'tax' => env('TAX_RATE', 12),
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Shoppingcart database settings
  16. |--------------------------------------------------------------------------
  17. |
  18. | Here you can set the connection that the shoppingcart should use when
  19. | storing and restoring a cart.
  20. |
  21. */
  22. 'database' => [
  23. 'connection' => null,
  24. 'table' => 'shoppingcart',
  25. ],
  26. /*
  27. |--------------------------------------------------------------------------
  28. | Destroy the cart on user logout
  29. |--------------------------------------------------------------------------
  30. |
  31. | When this option is set to 'true' the cart will automatically
  32. | destroy all cart instances when the user logs out.
  33. |
  34. */
  35. 'destroy_on_logout' => false,
  36. /*
  37. |--------------------------------------------------------------------------
  38. | Default number format
  39. |--------------------------------------------------------------------------
  40. |
  41. | This defaults will be used for the formated numbers if you don't
  42. | set them in the method call.
  43. |
  44. */
  45. 'format' => [
  46. 'decimals' => 2,
  47. 'decimal_point' => '.',
  48. 'thousand_seperator' => ','
  49. ],
  50. 'currency' => env('DEFAULT_CURRENCY', 'USD'),
  51. 'currency_symbol' => env('CURRENCY_SYMBOL', '$')
  52. ];