38 lines
941 B
PHP
38 lines
941 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\Api\Insurance;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class StoreInsuranceRequest extends FormRequest
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Determine if the user is authorized to make this request.
|
||
|
|
*
|
||
|
|
* @return bool
|
||
|
|
*/
|
||
|
|
public function authorize()
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the validation rules that apply to the request.
|
||
|
|
*
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
public function rules()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'hospital_id' => 'required',
|
||
|
|
'full_name' => 'required',
|
||
|
|
'address' => 'required',
|
||
|
|
'email' => 'required|email',
|
||
|
|
'medical_problem' => 'required',
|
||
|
|
'aadhar_card_number' => 'required|max:12|min:12',
|
||
|
|
'aadhar_card_front_photo' => 'required|image|mimes:jpeg,png,jpg,webp|max:2048',
|
||
|
|
'aadhar_card_back_photo' => 'required|image|mimes:jpeg,png,jpg,webp|max:2048',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|