Fix helper implementation

Use class with static files instead of load it directly in composer json
This commit is contained in:
Afiq Hamzah
2023-11-27 09:49:52 +08:00
parent 8c09f6f64d
commit 6739237477
4 changed files with 18 additions and 26 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ use App\Gadai;
use App\Marhun;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Http\Request;
use App\Helper;
class GadaianService
{
@@ -82,8 +83,8 @@ class GadaianService
$data = [
'query' => [
'startDate' => formatDate($this->startDate),
'endDate' => formatDate($this->endDate),
'startDate' => Helper::formatDate($this->startDate),
'endDate' => Helper::formatDate($this->endDate),
],
'cawangan_detail' => $cawangan_detail,
'gadaian' => $total_gadaian,