Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel tips

$q->where(function ($query) {
    $query->where('gender', 'Male')
        ->where('age', '>=', 18);
})->orWhere(function($query) {
    $query->where('gender', 'Female')
        ->where('age', '>=', 65);
})

Source by laravel-news.com #
 
PREVIOUS NEXT
Tagged: #laravel #tips
ADD COMMENT
Topic
Name
4+3 =