Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel String Helper Function: random

The random helper method generates a random string of the specified length and requires the OpenSSL extension to be installed and configured. If the OpenSSL extension is not installed, a RuntimeException will be thrown. The random method removes certain characters from the generated string. Additionally, there is a shortcut function called str_random that calls Str::random.