diff --git a/app/Http/Requests/GoCardless/WebhookRequest.php b/app/Http/Requests/GoCardless/WebhookRequest.php new file mode 100644 index 0000000000..41d5b709f4 --- /dev/null +++ b/app/Http/Requests/GoCardless/WebhookRequest.php @@ -0,0 +1,34 @@ +|string> + */ + public function rules(): array + { + return [ + 'events' => ['required', 'array'], + 'events.*.resource_type' => ['required', 'string'], + ]; + } +}