After upgrading Laravel from 5.6 to 6.0, Call to undefined str_random() function not working

后端 未结 4 1047
说谎
说谎 2020-12-15 06:29

I have upgraded Laravel from 5.6 to 6.0. Previously, default helper functions were running fine on the controllers, but now it says \"undefined.\" In my con

4条回答
  •  轮回少年
    2020-12-15 07:28

    In my case, I didn't use any of the string helpers in my app code, so I just had to remove the compiled class file:

    php artisan clear-compiled
    

提交回复
热议问题