Skip to content

Normalize customer phone number#1369

Merged
beesaferoot merged 8 commits intomainfrom
normalize-phonenumbers-db
Mar 18, 2026
Merged

Normalize customer phone number#1369
beesaferoot merged 8 commits intomainfrom
normalize-phonenumbers-db

Conversation

@beesaferoot
Copy link
Contributor

Closes: #1361

Brief summary of the change made

Are there any other side effects of this change that we should be aware of?

Describe how you tested your changes?

Pull Request checklist

Please confirm you have completed any of the necessary steps below.

  • Meaningful Pull Request title and description
  • Changes tested as described above
  • Added appropriate documentation for the change.
  • Created GitHub issues for any relevant followup/future enhancements if appropriate.

@beesaferoot beesaferoot requested a review from dmohns March 12, 2026 09:32
@beesaferoot beesaferoot requested a review from dmohns March 12, 2026 16:10
Copy link
Member

@dmohns dmohns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, nice! Few more comments

@beesaferoot beesaferoot force-pushed the normalize-phonenumbers-db branch from f02a586 to f826f33 Compare March 13, 2026 11:17
@beesaferoot beesaferoot requested a review from dmohns March 17, 2026 14:08
Copy link
Member

@dmohns dmohns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment on lines 22 to 27
public function rules(): array {
return [
'city_id' => ['required'],
'phone' => ['phone:INTERNATIONAL'],
];
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More a question, not a request for change: What is the difference between rules on the Request and rules on the Model itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between rules on the Request and rules on the Model itself?

The request rule enforces the correct structure on the client level, while the model rule enforces it on the DB level, which can bypass the request layer.

@beesaferoot beesaferoot merged commit 457c5a3 into main Mar 18, 2026
16 checks passed
@beesaferoot beesaferoot deleted the normalize-phonenumbers-db branch March 18, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Store customer's phone number normalised in database

2 participants