1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/you-can-customize-default-validation-rules-for-passwords.md
Samuel Štancl a955c3968b Week 24/2022
2022-06-19 21:46:45 +02:00

15 lines
No EOL
613 B
Markdown

---
title: 'You can customize default validation rules for passwords'
tweet_id: '1538579140147699712'
thread_slug: weekly-thread-2022-24
author_username: ecrmnn
images:
- 'https://pbs.twimg.com/media/FUqvZeiVEAAsdBC.jpg'
created_at: 2022-06-19T17:47:07+00:00
slug: you-can-customize-default-validation-rules-for-passwords
---
You can specify the default validation rules for passwords in a single location of your Laravel app 🔐
Create a custom provider or use the AppServiceProvider. Then use `Password::defaults()` as validation rule ✅
You can have different defaults depending on the app environment.