root 4 лет назад
Родитель
Сommit
cb6f8babf1
1 измененных файлов: 1 добавлений и 6 удалений
  1. 1
    6
      app/Http/Controllers/Api/RestfulapiController.php

+ 1
- 6
app/Http/Controllers/Api/RestfulapiController.php Просмотреть файл

@@ -91,12 +91,7 @@ class RestfulapiController extends BaseController
$date = $request->date;

$compound = Compound::with('Faulty', 'Department', 'DeedLaw')
->where(function($q) use ($jenis){

//filter by jenis
$q->where('jenis', $jenis)->orWhere('jenis_n', $jenis);

})->where(function($q1) use ($notice, $ic, $date, $jalan, $taman, $kawasan) {
->where(function($q1) use ($notice, $ic, $date, $jalan, $taman, $kawasan) {

//filter by date
if(!empty($date) && $date != '-'){

Загрузка…
Отмена
Сохранить