How to Generate Random Unique String in Laravel?
Laravel provide several string helper that way we can use it easily like str_limit, str_plural, str_finish, str_singular etc. If you need to generate unique random string then you can use str_random() helper of Laravel. It is very simple and you can use easily.
str_random() helper take one numeric argument and return number of unique string that you pass as argument. you can see it's syntax and example:
$random = str_random(30);