You need to use a function. Something like this:
$q = DB::table('my_table')
->where('some_field','=','some_value')
->where(function($query){
$query->where('date_start','=','2015')
->orWhere('date_start','=','2016');
})
->get();
That should get you on the right track.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community