Closed
Description
The following query yields many results:
$query = '%'.Input::get('q').'%';
return Contract::where('contractNumber', 'like', $query)->get();
But this query returns ZERO results...if anything, shouldn't it only return more results?
$query = '%'.Input::get('q').'%';
return Contract::where('contractNumber', 'like', $query)->orWhere('customerId', 'like', $query)->get();
"Contract" has $softDelete = 'true', and as soon as I turned that off, my orWhere clauses worked again
Metadata
Metadata
Assignees
Labels
No labels