My validation class is as follows
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class PaymentRequest extends Request
{
public function authorize()
{
return true;
}
public function rules()
{
$rules = array(
'invoiceid'=>'required',
'recieved_amount'=>'required',
'ref_no'=>'required',
'date'=>'required',
'comment'=>'required'
);
}
}
I want to check recieved_amounthow the money field. As if nothing but money was entered, it must be confirmed
Can anyone help me on this
source
share