app/Http/Requests/Doctor/UpdateDoctorRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'specialist_id' => [
                'required', 'integer',
            ],
            'name' => [
                'required', 'string', 'max:255',
            ],
            'fee' => [
                'required', 'string', 'max:255',
            ],
            'photo' => [
                'nullable', 'mimes:jpeg,svg,png', 'max:10000',
            ],
        ];
    }
public function rules ( ) { return [ 'specialist_id' => [ 'required' , 'integer' , ] , 'name' => [ 'required' , 'string' , 'max:255' , ] , 'fee' => [ 'required' , 'string' , 'max:255' , ] , 'photo' => [ 'nullable' , 'mimes:jpeg,svg,png' , 'max:10000' , ] , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .