Kaynağa Gözat

find installer with Trashed

ifah
Siti Hajar Ibrahim 5 yıl önce
ebeveyn
işleme
0576178947

+ 1
- 1
app/Http/Controllers/Contractor/WorkOrderController.php Dosyayı Görüntüle

@@ -239,7 +239,7 @@ class WorkOrderController extends Controller

info('contractor242' . $w->installer_id . $w->wo);
if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = $installer->StaffDetail->name;
}


+ 2
- 2
app/Http/Controllers/CustomerService/WorkOrderController.php Dosyayı Görüntüle

@@ -279,7 +279,7 @@ class WorkOrderController extends Controller

info('cs282 ' . $w->installer_id . $w->wo);
if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = $installer->StaffDetail->name;
}

@@ -497,7 +497,7 @@ class WorkOrderController extends Controller

info('cs499 ' . $w->installer_id . $w->wo);
if($w->installer_id != ''){
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->first();
$installer = Staff::with('StaffDetail')->where('_id',$w->installer_id)->withTrashed()->first();
$installer = $installer->StaffDetail->name;
}


Loading…
İptal
Kaydet