Skip to content

Commit 987c505

Browse files
load helpers.php
1 parent a837972 commit 987c505

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

app/helpers.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66
use Illuminate\Support\Facades\Auth;
77
use Illuminate\Support\Facades\Storage;
88

9-
if (! function_exists('formatVND')) {
10-
function formatVND(int $number): string
11-
{
12-
// Format the number with thousands separator and no decimals
13-
$formattedNumber = number_format($number, 0, '', '.');
14-
15-
// Append the Vietnamese currency symbol
16-
return $formattedNumber.'';
17-
}
18-
}
19-
209
if (! function_exists('authUser')) {
2110
function authUser(): User
2211
{

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
"App\\": "app/",
3232
"Database\\Factories\\": "database/factories/",
3333
"Database\\Seeders\\": "database/seeders/"
34-
}
34+
},
35+
"files": [
36+
"app/helpers.php"
37+
]
3538
},
3639
"autoload-dev": {
3740
"psr-4": {

0 commit comments

Comments
 (0)