Laravel Search by 3 values get nothing
I have a bunch of columns in a table what I need is to filter the table using few parameters using laravel Eloquent ORM. For example companyName, StartDate. what I have tried is below $objFetch = OpenOrder::where('companyName', $request->majorCompanies) ->orwhereBetween( 'StartDate', array($request->startDate_start, $request->startDate_end) ) ->orderby('id', 'desc')->get(); return response()->json([ 'success' => true, 'objects' => $objFetch ]); "objects": [ { "company": "aa", "StartDate": 2/24/2021, }, { "company": "aa" "StartDate": 2/25/2021, }, { "company": "aa", "StartDate": 4/1...