laravel糟糕,好像出了点问题

时间:2019-07-04 07:06:13

标签: laravel-5

laravel,我点击了搜索按钮,出现了一条错误消息“糟糕,好像出了点问题。”

public function kategori(Request $request)
    {

      $keyword = $request['keyword'];

      $kota = $request['city'];

      $City= City::where('nameCity','<>',$kota)->get();
      $Kate=Category::where('categoryType',$keyword)->get();


      // $branch = Branch::where('branchName','LIKE',"%{$keyword}%")->paginate(30);
      $branch = DB::table('mi_branch')->join('mi_resto_category', function ($join) use ($kota,$keyword)
       {
        $join->where('categoryType', 'LIKE', "%{$keyword}%");
       $join->on('mi_branch.branchCategory', '=', 'mi_resto_category.categoryId');})
      ->where('branchVenue','=',"{$kota}")->orWhere('branchAddress','LIKE',"%{$keyword}%")
      ->where('branchVenue','=',"{$kota}")->orWhere('branchName','LIKE',"%{$keyword}%")
      ->where('branchVenue','=',"{$kota}")->orWhere('branchPointRules','LIKE',"%{$keyword}%")
      ->where('branchVenue',"{$kota}")->get();

return view('v_bykategori',compact(['brand'],['branch'],['kota'],['City'],['Kate'],['keyword']));

enter image description here

0 个答案:

没有答案