SyntaxFix
Write A Post
Hire A Developer
Questions
I came across this when upgrading from 5.8 to 6.x.
I had str_slug() in config/cache.php and config/session.php.
str_slug()
config/cache.php
config/session.php
I have changed it to Str::slug() and the error has disappeared.
Str::slug()
See https://laravel.com/docs/6.x/upgrade#helpers.