Validation rules won't work #357
-
Hi, community, I am using this package validation rule inside a private package that has been generated from spatie/package-skeleton-laravel. this is the Data class:
and this is how I instantiate it:
The way I test the code is by running There is no exception/validation done whatsoever. Is there something I am doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Use |
Beta Was this translation helpful? Give feedback.
-
needs to be fixed in my opinion. |
Beta Was this translation helpful? Give feedback.
Use
validateAndCreate
sincefrom
will only validate when a request has been passed to it.