app/Http/Requests/Doctors/DoctorRequest.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 [
            'name'=> 'required|min:5|max:255|regex:/^([a-zA-Z]+)(\s[a-zA-Z]+)+$/|unique:brands,name',
            'description'=>'required|min:20|max:255:brands',
            'image'=>'required:brands',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:5|max:255|regex:/^([a-zA-Z]+)(\s[a-zA-Z]+)+$/|unique:brands,name' , 'description' => 'required|min:20|max:255:brands' , 'image' => 'required:brands' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .