1
I’m making an appointment at Laravel
and it is returning the date with the following value.
select `campo` from `tabela` where `campodotipodata` = ?
well it returns so the SQL
, follows the code in the LARAVEL
$vardata = date('Y-m-d');
$cardapios = $this->tabela->where('campodotipodata', '=', $vardata)
->select('campo')->toSql();//get();
It’s just like that in the place of that
?
it will put the date at the time you call theget()
, for example, but tell me what the doubt is?– novic
it returns nothing despite having data in the database.. toSql is because it was testing
– Daniel Carlos
Also, as this recorded that date?
– novic