%PDF- %PDF-
Direktori : /var/www/html/klinisol/klinisol-api/app/Http/Requests/Api/App/v1/Patient/ |
Current File : /var/www/html/klinisol/klinisol-api/app/Http/Requests/Api/App/v1/Patient/SendPatientCodeRequest.php |
<?php namespace App\Http\Requests\Api\App\v1\Patient; use App\Http\Requests\BaseRequest; class SendPatientCodeRequest extends BaseRequest { /** * 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 [ 'patient_code' => 'required|string|exists:patients,code', ]; } public function messages() { return [ 'patient_code.exists' => 'Patient Code does not exist!', ]; } }