1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/use-the-strheadline-method-to-convert-strings-to-studly-words.md
2021-11-12 18:43:31 +01:00

589 B

title tweet_id thread_slug author_username images created_at slug
Use the Str::headline() method to convert strings to studly words 1459206738872201218 weekly-thread-2021-45 bradyrenting
https://pbs.twimg.com/media/FD0rTEbWQAEbf7F.jpg
2021-11-12T17:09:31+00:00 use-the-strheadline-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! 🙌