mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 07:31:31 +00:00
Set default number format in config file
This commit is contained in:
@@ -171,6 +171,8 @@ The method will automatically format the result, which you can tweak using the t
|
||||
Cart::total($decimals, $decimalSeperator, $thousandSeperator);
|
||||
```
|
||||
|
||||
You can set the default number format in the config file.
|
||||
|
||||
**If you're not using the Facade, but use dependency injection in your (for instance) Controller, you can also simply get the total property `$cart->total`**
|
||||
|
||||
### Cart::tax()
|
||||
@@ -187,6 +189,8 @@ The method will automatically format the result, which you can tweak using the t
|
||||
Cart::tax($decimals, $decimalSeperator, $thousandSeperator);
|
||||
```
|
||||
|
||||
You can set the default number format in the config file.
|
||||
|
||||
**If you're not using the Facade, but use dependency injection in your (for instance) Controller, you can also simply get the tax property `$cart->tax`**
|
||||
|
||||
### Cart::subtotal()
|
||||
@@ -203,6 +207,8 @@ The method will automatically format the result, which you can tweak using the t
|
||||
Cart::subtotal($decimals, $decimalSeperator, $thousandSeperator);
|
||||
```
|
||||
|
||||
You can set the default number format in the config file.
|
||||
|
||||
**If you're not using the Facade, but use dependency injection in your (for instance) Controller, you can also simply get the subtotal property `$cart->subtotal`**
|
||||
|
||||
### Cart::count()
|
||||
|
||||
Reference in New Issue
Block a user