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)
★ 12683 Created: Dec 2015 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Services/SmartPlaylistService.php
Repository: akaunting/akaunting (Github)
★ 4174 Created: Sep 2017 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/Purchases/Vendors.php
Repository: orchidsoftware/platform (Github)
★ 2302 Created: Nov 2016 Updated: Aug 2021 Laravel version: 8
Files in the example:
- src/Platform/Http/Controllers/AttachmentController.php
Repository: spatie/dashboard.spatie.be (Github)
★ 1906 Created: Jun 2017 Updated: Apr 2021 Laravel version: 8
Files in the example:
- app/Tiles/TeamMember/Commands/FetchCurrentTracksCommand.php
Repository: tighten/novapackages (Github)
★ 202 Created: Feb 2020 Updated: Jul 2021 Laravel version: 8
Files in the example:
- database/seeders/DatabaseSeeder.php
Repository: opendialogai/opendialog (Github)
★ 171 Created: May 2019 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/StatisticsController.php
Repository: christophrumpel/larastreamers (Github)
★ 82 Created: May 2021 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/CalendarController.php
Repository: familytree365/backend (Github)
★ 64 Created: May 2021 Updated: Jul 2021 Laravel version: 8
Files in the example:
- app/Http/Controllers/EventController.php