Selaa lähdekoodia

get-database

allo_data_retrieve^2
Siti Hajar Ibrahim 5 vuotta sitten
vanhempi
commit
eb28748b94
1 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. 2
    6
      app/Http/Controllers/Controller.php

+ 2
- 6
app/Http/Controllers/Controller.php Näytä tiedosto

@@ -151,13 +151,9 @@ class Controller extends BaseController

public function getDatabase(Request $request)
{
$subscriber = Subscriber::where('name',$request->name)->first();
// $form = Form::where('_id',$subscriber->_id)->withTrashed()->first();
// $work_order = WorkOrder::where('_id',$subscriber->_id)->withTrashed()->first();
$work_order = WorkOrder::where('wo', 'WO-15324')->first();

$formHistory = FormStatus::where('form_id',$subscriber->_id)->get();

return $formHistory;
return $work_order;
}

public function adjustInstaller(){

Loading…
Peruuta
Tallenna