Answers for "multiple logical condition in laravel query"

PHP
1

multiple logical condition in laravel query

// ...
$q->where(function ($query) {
    $query->where('gender', 'Male')
        ->where('age', '>=', 18);
})->orWhere(function($query) {
    $query->where('gender', 'Female')
        ->where('age', '>=', 65);	
})
Posted by: Guest on August-04-2020

Code answers related to "multiple logical condition in laravel query"

Browse Popular Code Answers by Language