Examples of Collection Methods: Each (8)

Short information about each

The each method iterates over the items in the collection and passes each item to a closure.
Read more in the official Laravel docs.

Repository: koel/koel (Github)
★ 13870 Created: Dec 2015 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Services/SmartPlaylistService.php
Repository: akaunting/akaunting (Github)
★ 5417 Created: Sep 2017 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Http/Controllers/Purchases/Vendors.php
Repository: orchidsoftware/platform (Github)
★ 3208 Created: Nov 2016 Updated: Aug 2022 Laravel version: 8
Files in the example:
- src/Platform/Http/Controllers/AttachmentController.php
Repository: spatie/dashboard.spatie.be (Github)
★ 1919 Created: Jun 2017 Updated: May 2022 Laravel version: 8
Files in the example:
- app/Tiles/TeamMember/Commands/FetchCurrentTracksCommand.php
Repository: tighten/novapackages (Github)
★ 305 Created: Feb 2020 Updated: Aug 2022 Laravel version: 8
Files in the example:
- database/seeders/DatabaseSeeder.php
Repository: opendialogai/opendialog (Github)
★ 240 Created: May 2019 Updated: Aug 2022 Laravel version: 8
Files in the example:
- app/Http/Controllers/StatisticsController.php
Repository: christophrumpel/larastreamers (Github)
★ 178 Created: May 2021 Updated: Jul 2022 Laravel version: 8
Files in the example:
- app/Http/Controllers/CalendarController.php
Repository: familytree365/backend (Github)
★ 83 Created: May 2021 Updated: Aug 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/EventController.php