Posts by Lorena Stripper • 31 points
2 posts
-
3
votes1
answer130
viewsQ: Where do Eloqent Laravel Doesn’t Work
I have the following code public function getConsultaLocacao() { $consulta = LocacaoBanco::where('id',4)->get(); foreach($consulta as $v) { echo"aqui->".$v->datalocacao; } echo…
-
-1
votes1
answer30
viewsQ: How to count line with runquery(Laravel)
$id= $this->id; $consulta = DB::select('select *from locacao where id = ?',[$id]); $consulta->count(); I tried it :(but it didn’t work out the $query->Count(); I only find things related to…