Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation number greater than 0

//amount must be greater than 0 laravel validation 
function store(Request $request)
{
  $request->validate([
     'product_price' => 'required|numeric|gt:0'
   ]);
 } 
//@sujay
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #number #greater
ADD COMMENT
Topic
Name
9+8 =