Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel where and or condition

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