I have the fields look like this as an array:
<input type="text" name="stock[3]">
<input type="text" name="alert[3]">
For some reason validation is passed when I enter non numeric.
The rules look like this:
public function rules()
{
return [
'stock.*' => 'numeric|required',
'alert.*' => 'numeric|required',
];
}
What did I do wrong?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2mZcp6P
via IFTTT
Aucun commentaire:
Enregistrer un commentaire