Linked Questions

Popular Questions

Validating Array in Laravel 5.5

Asked by At

I want to put validation on my form that has array on it input name="sn[]" I tried to use this:

$data = $request->validate(["sn.*" => "required|max:30"]);

but it doesn't work and causing an error

MethodNotAllowedHttpException

How do I put validation on array?

Related Questions