Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel how to nested foreach

$groupedQuarterly = $dth->mapToGroups(function ($item, $key) {
    return [$item['triwulan'] => $item];
})->toArray();

return view('Triwulan.index',compact('groupedQuarterly'));
 
PREVIOUS NEXT
Tagged: #laravel #nested #foreach
ADD COMMENT
Topic
Name
1+4 =