Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ Laravel includes a variety of global "helper" PHP functions. Many of these funct
[Number::abbreviate](#method-number-abbreviate)
[Number::clamp](#method-number-clamp)
[Number::currency](#method-number-currency)
[Number::defaultCurrency](#method-default-currency)
[Number::defaultLocale](#method-default-locale)
[Number::fileSize](#method-number-file-size)
[Number::forHumans](#method-number-for-humans)
[Number::format](#method-number-format)
Expand Down Expand Up @@ -1231,6 +1233,28 @@ The `Number::currency` method returns the currency representation of the given v

// 1.000,00 €

<a name="method-default-currency"></a>
#### `Number::defaultCurrency()` {.collection-method}

The `Number::defaultCurrency` method returns the default currency being used by the `Number` class:

use Illuminate\Support\Number;

$currency = Number::defaultCurrency();

// USD

<a name="method-default-locale"></a>
#### `Number::defaultLocale()` {.collection-method}

The `Number::defaultLocale` method returns the default locale being used by the `Number` class:

use Illuminate\Support\Number;

$locale = Number::defaultLocale();

// en

<a name="method-number-file-size"></a>
#### `Number::fileSize()` {.collection-method}

Expand Down