So I have a query that looks like
$atten = Attendance::select( DB::raw('DATE(tStamp)') )->groupBy( DB::raw('DATE(tStamp)') )->get() ;
foreach ($atten as $d)
{
return $d ;
}
And the return value looks like {"DATE(tStamp)":"2016-08-23"}
I can't seem to get the value like I would using $d->DATE(tStamp)
Which is weird looking and wrong.
I think my query needs help or how can I get my date out of the object? thanks,
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community