add new db
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user