"required|alpha|min:2|max:30", "surname" => "required|alpha|min:2|max:30", "phone_number" => "required|unique:users,phone_number,$this->id,id", "avatar" => "mimes:jpeg,png,gif|max:5000", ]; } protected function getValidatorInstance() { return parent::getValidatorInstance(); } }