The new custom password rule object in Laravel 8.x

1 · Amit Merchant · April 24, 2021, 7:10 p.m.
Passwords are sensitive data and they should be handled with utmost care. The one way to ensure that the user’s password remains safe is to make them enter the strong password in the first place. If you’re using Laravel, you can do this by setting up validation rules for your fields including passwords. But, there are very limited rules you can apply on a sensitive field like passwords at least for now. The old way The custom password rule object Chain them all together The old way For instanc...