Laravel price validation only accept positive number and not only 0
You can format the input before sending it to the validator in your Request
class.
public function formatInput()
{
$input = array_map('trim', $this->all());
$input['price'] = (int)($input['price']);
$this->replace($input);
return $this->all();
}
Then you can use
'price' => 'required|integer|min:0',
Hope this helps
This works for me:
'price' => 'required|numeric|gt:0',