Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel grouping where

User::where('username','john doe')
    ->where(function($query)
    {
        $query->where('age','>',30)
        ->orWhere('email','=','johndoe@xyz.com');
    })
    ->toSql();
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #grouping
ADD COMMENT
Topic
Name
6+3 =