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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -