Sfoglia il codice sorgente

get-database

master
Siti Hajar Ibrahim 5 anni fa
parent
commit
632cbb17e7
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      app/Http/Controllers/Controller.php

+ 3
- 3
app/Http/Controllers/Controller.php Vedi File

@@ -152,11 +152,11 @@ 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();
// $form = Form::where('_id',$subscriber->_id)->withTrashed()->first();
// $work_order = WorkOrder::where('_id',$subscriber->_id)->withTrashed()->first();

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

return $form . $work_order . $formHistory;
return $formHistory;
}
}

Loading…
Annulla
Salva