Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel nested query builder

$users = User::where('active','1')->where(function($query) {
			$query->where('email','jdoe@example.com')
						->orWhere('email','johndoe@example.com');
})->get();
 
PREVIOUS NEXT
Tagged: #laravel #nested #query #builder
ADD COMMENT
Topic
Name
1+9 =