laravel - how whereBetween handle to this query -
i want use wherebetween handle query
select * schedules now() between start , end
thank attentions
you can this
$schedules = db::table('schedule')->select('id', 'name') ->wherebetween( db::raw('now()'), [$startdate, $enddate]) ->get();
Comments
Post a Comment