In this article, we’ll explain why this error occurs, how to resolve it, and provide some useful context on Laravel’s changes regarding random string generation.
How To Resolve Call to Undefined Function str_random() Error in Laravel? |
Understanding the Error
The error Call to undefined function App\Http\Controllers\str_random() happens when you try to use the str_random() function, which is no longer defined in Laravel as of version 6. This function was originally part of the global helper functions provided by Laravel but was removed in favor of a more standardized approach using the Str facade.
Read More How To Resolve Call To Undefined Function Str_random() Error In Laravel? | GSS TECHNOLOGY
Read More: https://gss-technology.com/how-to-resolve-call-to-undefined-function-str_random-error-in-laravel/