Why wheredate not working in laravel 5.3?
My laravel eloquent is like this : public function search(Request $request) { $search = ''; $searchdate = '2017-04-27'; $reports = Report::whereHas('user', function($query) use ($search) { $query->where(function ($q) use($search) { $q->where('name' ,'LIKE' ,'%'.$search.'%'); }); })->orWhereHas('store', function($query) use ($search){ $query->where(function ($q) use($search) { $q->where('name', 'LIKE', '%'.$search.'%'); }); })->orWhereHas('category', function($query) use ($search) { $query->where(function ($q) use($search) { $q->where('name', 'LIKE' , '%'.$search.'%'); }); })->whereDate(