Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

orwhere in wherehas laravel

User::select()->whereHas('student', $function($q) {
        $q->where('name', $value)
          ->orWhere('age', $value2);
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #orwhere #wherehas #laravel
ADD COMMENT
Topic
Name
9+9 =