I have a field days
in my database nopw i want to save only integer or float value in this column
like values can be
1
2
0.5
2.5
i tried to use numeric but then it is not allowing me to enter float values
$this->validate($request, [
'days' => 'required|numeric|min:1|max:50',
]);
Any help is highly appreciated.
Thanks
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Yd2ItV
via IFTTT
Aucun commentaire:
Enregistrer un commentaire