Short information about transform
The transform
method iterates over the collection and calls the given callback with each item in the collection. The items in the collection will be replaced by the values returned by the callback.
Read more in the official Laravel docs.
Repository: akaunting/akaunting
(Github)
★ 5417
Created: Sep 2017
Updated: Aug 2022
Laravel version: 8
Files in the example:
- app/Http/Controllers/Settings/Modules.php
Repository: inertiajs/pingcrm
(Github)
★ 1578
Created: Mar 2019
Updated: Jul 2022
Laravel version: 8
Files in the example:
- app/Http/Controllers/UsersController.php
Repository: opendialogai/opendialog
(Github)
★ 240
Created: May 2019
Updated: Aug 2022
Laravel version: 8
Files in the example:
- app/Http/Resources/ConversationCollection.php