Level 53
Did you import it? as in use Illuminate\Support\Str above the class?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everyone!!
Just a quick question. I've been trying to use Str::slug or Str::words in Laravel 5 but I always get a "Class 'Str' not found".
How can I fix that?
Thanks in advance!
Please or to participate in this conversation.