Skip to content

Commit

Permalink
Fix introduction.md
Browse files Browse the repository at this point in the history
Attribute is called MapInputName
  • Loading branch information
pikant authored Jan 22, 2025
1 parent 5e0df23 commit c8bf3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/validation/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ When mapping property names, the validation rules will be generated for the mapp
class SongData extends Data
{
public function __construct(
#[MapFrom('song_title')]
#[MapInputName('song_title')]
public string $title,
) {
}
Expand Down

0 comments on commit c8bf3b4

Please sign in to comment.