MapInputName not found in file #218
-
New to Laravel and also new to Laravel-Data; the library is awesome! When I try to use the MapInputName I receive the error: This is what my code looks like: `<?php use Spatie\LaravelData\Data; #[MapInputName(SnakeCaseMapper::class)]
}` It works if I leave out the MapInputName. Any ideas? (Sorry for the bad code formating; for some reason I cannot get it work for the whole code be in the code block.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should import the class: |
Beta Was this translation helpful? Give feedback.
You should import the class:
use Spatie\LaravelData\Attributes\MapInputName;