create receipt logic api
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\V3\AccidentReceipt;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ConfirmPaymentInfoRequest extends FormRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the user is authorized to make this request.
|
||||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'deposit_insurance_image' => 'file',
|
||||
'deposit_insurance_amount' => 'required_with:deposit_insurance_image',
|
||||
'deposit_daghi_image' => 'file',
|
||||
'deposit_daghi_amount' => 'required_with:deposit_daghi_image',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user