lundi 21 août 2017

WhereBetween function in not working properly Laravel 5.0

$dt = \Carbon::now();
$tomorrow = Carbon::tomorrow();
$yesterday = Carbon::yesterday();
$data = $this->model->select('id', 'description')
 ->whereBetween($dt, array($yesterday, $tomorrow))->get();

It is returning an error saying "An error occurred in database operation."



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2x5VV3g
via IFTTT

Aucun commentaire:

Enregistrer un commentaire