Fix helper implementation
Use class with static files instead of load it directly in composer json
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user