Laravel Loop melalui koleksi
$users = App\User::where('active', 1)->get();
foreach ($users as $user) {
echo $user->name;
}
Bad Boar
$users = App\User::where('active', 1)->get();
foreach ($users as $user) {
echo $user->name;
}