Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel elequent query

Model::where(function ($query) {
    $query->where('a', '=', 1)
          ->orWhere('b', '=', 1);
})->where(function ($query) {
    $query->where('c', '=', 1)
          ->orWhere('d', '=', 1);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #elequent #query
ADD COMMENT
Topic
Name
2+3 =