79484330

Date: 2025-03-04 16:49:21
Score: 0.5
Natty:
Report link
Modify your validation rule to explicitly define data as an array:

public function rules(): array
{
    return [
        'data' => 'required|array',
    ];
}

This tells Laravel that data must be an array, preventing the error.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Switi