Skip to content

Commit

Permalink
load helpers.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentranchung committed May 30, 2024
1 parent a837972 commit 987c505
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
11 changes: 0 additions & 11 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;

if (! function_exists('formatVND')) {
function formatVND(int $number): string
{
// Format the number with thousands separator and no decimals
$formattedNumber = number_format($number, 0, '', '.');

// Append the Vietnamese currency symbol
return $formattedNumber.'';
}
}

if (! function_exists('authUser')) {
function authUser(): User
{
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"files": [
"app/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
Expand Down

0 comments on commit 987c505

Please sign in to comment.