“Call to undefined function str_slug()” in Laravel 6.0

前端 未结 3 2061
梦毁少年i
梦毁少年i 2021-02-04 23:22

I\'ve upgraded my laravel 5.8 project to 6.0. It has upgraded successfully but when I\'m trying to run the project or installing another package to my project it is giving me er

3条回答
  •  无人共我
    2021-02-04 23:54

    If you have gone through the upgrade guide then you must know that

    String and Array

    Helpers are removed from Core Framework

    https://laravel.com/docs/6.0/upgrade#helpers

    https://github.com/laravel/framework/blob/5.8/src/Illuminate/Support/helpers.php#L1071

    So if if You need to still use the helper install the package

    composer require laravel/helpers
    

    and all the helpers are moved to this package

提交回复
热议问题