root hace 5 años
padre
commit
9682dc2f0a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Http/Controllers/Api/FormController.php

+ 1
- 1
app/Http/Controllers/Api/FormController.php Ver fichero

@@ -106,7 +106,7 @@ class FormController extends BaseController
// $data = Form::with('PackageDetail', 'Subscriber','WorkOrder')->withTrashed()->get();
// $data = Form::with('PackageDetail', 'Subscriber','WorkOrder')->whereBetween('created_at', array($start, $end))->get();
$data = Form::with('PackageDetail', 'Subscriber','WorkOrder')->whereHas('Subscriber',function ($q) {
$q->where('name','Ahmad Kadafi');
$q->where('name','Ahmad Kadafi')->get();
});

if(count($data) > 0) {

Cargando…
Cancelar
Guardar