How to get random string in Laravel

Sometimes we need to get random string to generate unique URL and to generate the unique username while creating user record or any random string which we want to generate like password.

Answers 1