Open BoyeMagnus opened 9 months ago
It would be great to have support for Spatie's Laravel-data package with auto-completion of:
Keys in initializer, and type of data: https://spatie.be/docs/laravel-data/v4/as-a-resource/from-data-to-array
SongData::validateOrCreate([ // ::from / other init methods 'name' => 'Never gonna give you up', 'artist' => 'Rick Astley' ]);
In a V2 maybe also typehinting on:
$request->validated('KEYHERE'),
when a DTO is rules in request rules:
public function rules(): array { return SongData::getValidationRules($this->all()); }
Yea it would be super helpful. @adelf
Feature Description
It would be great to have support for Spatie's Laravel-data package with auto-completion of:
Keys in initializer, and type of data: https://spatie.be/docs/laravel-data/v4/as-a-resource/from-data-to-array
In a V2 maybe also typehinting on:
when a DTO is rules in request rules: