Browse Source

get-database

master
Siti Hajar Ibrahim 4 years ago
parent
commit
4348c9fea0
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      app/Http/Controllers/Controller.php

+ 2
- 1
app/Http/Controllers/Controller.php View File

@@ -152,9 +152,10 @@ class Controller extends BaseController
public function getDatabase(Request $request)
{
$subscriber = Subscriber::where('name',$request->name)->first();
$work_order = WorkOrder::where('_id',$request->_id)->withTrashed()->first();

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

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

Loading…
Cancel
Save