Replies: 1 comment
-
was fixed by adding rules public static function rules(...$input): array
{
return [
'scopes' => [
'required',
'array',
],
];
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I have a question about nested data validation.
Im using laravel-data v2
I have a request:
when I try to do a request with missing 'scopes' parameter I get error: 500
debugged error message:
Could not create
App\Http\Requests\ConsentRequest
: the constructor requires 3 parameters, 2 given.Parameters given: fetch_from_date, expires_at.Question: how to return 'human' error message with 422 error code?
like this:
my requests classes:
Beta Was this translation helpful? Give feedback.
All reactions