Make any string studly case using `Str::headline()` in Laravel 8.x

1 · Amit Merchant · Oct. 19, 2021, 4:01 p.m.
Strings are tricky things to work with when it comes to programming. But thankfully, Laravel provides a lot of helper methods that can fulfill almost all the use-cases you might have when you’re working with strings. In addition to all these string helper methods, Laravel will have one more method that can solve many problems all at once. The Str::headline() method According to this PR, Laravel 8.x will be included with this new method called Str::headline() using which it’s possible to make any...