add new db

This commit is contained in:
Afiq
2021-01-11 17:59:46 +08:00
parent dad0e2a9a1
commit 27155b739c
21 changed files with 297 additions and 241 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ class DailyGadai extends Command
$cawangan = Cawangan::on('mysql7')->get();
$current = Carbon::now();
foreach($cawangan as $cawangan_mysql){
$all_gadai = Gadai::on($cawangan_mysql['mysql'])->where('sttebus','!=','L')->orWhere('sttebus','!=','T')->get();
$all_gadai = Gadai::on($cawangan_mysql['mysql'])->whereNotIn('sttebus',['L','T'])->get();
foreach($all_gadai as $gadai){
if($gadai['t_update'] == null){
$tarikh_update = Carbon::parse($gadai['t_gadai'].' '. $gadai['masa']);