Answers for "Laravel has the ability to write what type of where clauses?"

PHP
6

laravel orWhere

$camps = $field->camps()->where('status', 0)->where(function ($q) {
    $q->where('sex', Auth::user()->sex)->orWhere('sex', 0);
})->get();
Posted by: Guest on October-20-2020

Code answers related to "Laravel has the ability to write what type of where clauses?"

Browse Popular Code Answers by Language