File: /mnt/data/ghayatcom/ghayatcom-api/app/Http/Requests/PatientDoctorListRequest.php
<?php
namespace App\Http\Requests;
use App\Library\CustomFailedValidation;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Exceptions\HttpResponseException;
class PatientDoctorListRequest extends CustomFailedValidation
{
/**
* 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 [
'type' => 'required|in:0,1',
'area_specialization' => 'nullable',
'experience' => 'nullable',
'video_call' => 'nullable',
'audio_call' => 'nullable',
'chat' => 'nullable',
'hospital_visit' => 'nullable',
'language' => 'nullable',
'count_per_page' => 'required',
'page' => 'required',
'order_by' => 'required|in:desc,asc',
'sort_by' => 'required',
];
}
}