I am trying to just iterate over the result set in laravel on the controller side. This is what I tried but get the following error:
Cannot use object of type stdClass as array
Controller Debugger:
$result = DB::select($query); foreach($result as $r){ echo $r['email']; }
I appreciate any help with this,
Thanks in advance!
eloquent laravel
Anchovylegend
source share