DB::table('users') ->where('name', '=', 'John') ->where(function ($query) { $query->where('votes', '>', 100) ->orWhere('title', '=', 'Admin'); }) ->get();
Select * from users where name = 'John' and (votes > 100 or title = 'Admin')
Clickable & Draggable!