Welcome
Installing Laravel data mapper in your application.
Laravel Data Mapper (previously named Laravel DTO) is a package that transfer data from side to side transforming it to adapt the data received.
This way it can map arrays to class objects with complex data structures or simply map a CSV list of user IDs to their model instances fetched from the database.
Grab the dependency with Composer
composer require open-southeners/laravel-data-mapper
Publish config file
php artisan vendor:publish --tag="laravel-data-mapper"
Now you can edit the config/data-mapper.php
file with your own config.
Last updated
Was this helpful?