📜  laravel 验证数大于 0 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:42.138000             🧑  作者: Mango

代码示例1
//amount must be greater than 0 laravel validation 
function store(Request $request)
{
  $request->validate([
     'product_price' => 'required|numeric|gt:0'
   ]);
 } 
//@sujay