1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +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

17 lines
No EOL
589 B
Markdown

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