Changeset d25ba66 for app/Http/Requests/Dashboard/NewUserRequest.php
- Timestamp:
- 02/24/21 17:04:35 (4 years ago)
- Branches:
- master
- Children:
- 0c07a90
- Parents:
- 1f059b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Requests/Dashboard/NewUserRequest.php
r1f059b0 rd25ba66 38 38 protected function getValidatorInstance() 39 39 { 40 if($this->request->has("mobile_number") && $this->request->has("mobile_number_country")) { 41 $this->request->set("mobile_number", PhoneNumber::make( 42 $this->request->get("mobile_number"), 43 $this->request->get("mobile_number_country") 44 )->formatInternational()); 45 } 40 try { 41 if($this->request->has("mobile_number") && $this->request->has("mobile_number_country")) { 42 $this->request->set("mobile_number", PhoneNumber::make( 43 $this->request->get("mobile_number"), 44 $this->request->get("mobile_number_country") 45 )->formatInternational()); 46 } 47 } catch (\Exception $e) {} 46 48 47 49 return parent::getValidatorInstance();
Note:
See TracChangeset
for help on using the changeset viewer.