Use the Str::headline() method to convert strings to studly words

Use the Str::headline() method to convert strings to studly words

💡It's refactor time!

Laravel 8.65 introduces the Str::headline() method, this method converts a string into studly words!

A small change like this results in less noise in my code.

Thanks @SteveTheBauman for this implementation! 🙌

We're writing a book, you can get it for free here.