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

前端 未结 3 2054
梦毁少年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-05 00:00

    Personal I hard to do the following on Laravel 6 on the app Controllers add this use Illuminate\Support\Str; then something like this 'slug' => Str::slug($request->title)

提交回复
热议问题