"Call to undefined function str_slug()" in Laravel 6.0
Stefan Izdrail
Founder & Senior Architect · 2026-06-29
Title: Resolving "Call to undefined function str_slug()" Error in Laravel 6.0
Body:
When upgrading your Laravel 5.8 project to version 6.0, you may encounter an error stating "Call to undefined function str_slug()" within the session.php file. While it can occur during the upgrade process or even while installing a third-party package in your project, this issue has multiple potential solutions.