Мне нужно выбрать следующее:
select * from table where (x = 1 OR y = 1) AND starting_at < '2018-05-01'
Как это сделать, пожалуйста.
DB::table('tableName') ->where(function ($query) { $query->where('x', '=', 1) ->orWhere('y', '=', '1'); }) ->where('starting_at', '<', '2018-05-01') ->get();