This commit is contained in:
Afiq
2020-12-31 17:21:27 +08:00
21 changed files with 1320 additions and 3 deletions
@@ -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();