add test batches
This commit is contained in:
@@ -6,17 +6,13 @@ use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class PaymentAllocationRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function authorize(): bool { return true; }
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'installments' => ['nullable', 'array'],
|
||||
'installments.*.installment_id' => ['required_with:installments', 'integer'],
|
||||
'installments.*.amount' => ['required_with:installments', 'numeric', 'min:0.01'],
|
||||
'installments' => ['nullable','array'],
|
||||
'installments.*.installment_id' => ['required_with:installments','integer'],
|
||||
'installments.*.amount' => ['required_with:installments','numeric','min:0.01'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user