whereBetween in Laravel to include today

If you pass the post request with following parameter to your Laravel controller you will not get the value for today
from : ‘2019-01-01′
to:’2019-01-01’

So you need to change the code following way