Laravel bucle a través de la colección

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

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