The new helper to generate secure passwords in Laravel 10.x

1 · Amit Merchant · Feb. 19, 2023, 6:39 p.m.
Oftentimes, you may need to generate a secure password for your users. And in such cases, you may use the Str::random() method to generate a random string. But, the problem with this method is that it generates a random string that may not be secure enough. The password() helper Customizing the password So, in Laravel 10.x, a new helper method called Str::password() has been introduced to generate secure passwords. The password() helper The new password() helper is a new helper method that has...