I am doing a query on Laravel
and it is returning the date with the following value.
select 'campo' from 'tabela' where 'campodotipodata' = ?
Well it returns SQL
, it follows code in LARAVEL
$vardata = date('Y-m-d');
$cardapios = $this->tabela->where('campodotipodata', '=', $vardata)
->select('campo')->toSql();//get();