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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -