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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -