1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +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

613 B

title tweet_id thread_slug author_username images created_at slug
You can customize default validation rules for passwords 1538579140147699712 weekly-thread-2022-24 ecrmnn
https://pbs.twimg.com/media/FUqvZeiVEAAsdBC.jpg
2022-06-19T17:47:07+00:00 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.