Laravel pętla przez kolekcję
$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;
}