Laravel validation rules
Validate DTOs with the same rules, messages, and attribute names you use in Form Requests, or declare them next to each property with the Rules attribute.
Define the data shape once, validate it with the rules you already know, and pass typed objects between requests, jobs, commands, and services.

Shipping manifest
[
'name' => 'Taylor',
'email' => '[email protected]',
'age' => '36',
]// rules()
'name' => ['required', 'string'],
'email' => ['required', 'email'],
'age' => ['required', 'integer'],
// casts()
'age' => new IntegerCast(),$dto = UserDTO::fromArray($input);
$dto->name; // 'Taylor'
$dto->age; // 36