Data Transfer Object extension package for easy generation of data rules and inspection of transfer data. Works with Laravel projects.
To install through Composer, by run the following command:
composer require fresns/dto
- Generate a new DTO (path:
php artisan make:dto BaseDTO
- Generate a new DTO (to the specified path)
php artisan make:dto BaseDTO --path /app/Fresns/Panel
See the Laravel documentation for the rules that can be used for validation.