Laravel Loop Through Collection

$users = App\User::where('active', 1)->get();

foreach ($users as $user) {
    echo $user->name;
}
Bad Boar