Merge branch 'master' of https://gitlab.com/online-sistem1/api_arrahn
This commit is contained in:
@@ -143,6 +143,18 @@ class CustomerController extends Controller
|
||||
return response()->json($gadai);
|
||||
}
|
||||
|
||||
public function getLaporanCustomers($kodcaw, $tarikh)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$gadai = Customer::on($cawangan['mysql'])
|
||||
->where('tarikhdaftar','=',$tarikh)
|
||||
->orderBy('tarikhdaftar', 'desc')
|
||||
->get();
|
||||
|
||||
return response()->json($gadai);
|
||||
}
|
||||
|
||||
public function create($kodcaw,Request $request){
|
||||
dd($request);
|
||||
$current = Carbon::now();
|
||||
|
||||
Reference in New Issue
Block a user