What's New in Laravel 11, Ep 06 - The Dumpable Trait
ฝัง
- เผยแพร่เมื่อ 13 ธ.ค. 2024
- A number of classes in Laravel have dump and dd methods available for quick debugging. With Laravel 11, it’s a breeze to add the same functionality to your own classes.
Watch Full Larabits Series on: laracasts.com/...
Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: laracasts.com
Laracasts Twitter: / laracasts
Jeffrey Way Twitter: / jeffrey_way
love this new trait! also, could you please explain more on the str helper and it's use cases? why would you specifically use that in any scenario other than the example?
APA is essentially title case for print. So it is super useful for page headings, blog post titles etc.
If you're asking about the string helper as a whole, it essentially allows super simple chainable changes on strings. It's a wrapper around native string functions that make it easier to follow what your code is actually doing to the initial string.