浏览代码

search compound

master
Siti Rahayu 4 年前
父节点
当前提交
d34a883f41
共有 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 != '-'){

正在加载...
取消
保存