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/you-can-use-bladestringable-to-define-how-specific-objects-should-be-converted-to-their-string-representation.md
2022-01-07 17:38:01 +01:00

647 B

title tweet_id thread_slug author_username images created_at slug
You can use Blade::stringable() to define how specific objects should be converted to their string representation 1479467939191345152 weekly-thread-2021-01 Philo01
https://pbs.twimg.com/media/FHn41aBXsAAUyar.jpg
2022-01-07T15:00:18+00:00 you-can-use-bladestringable-to-define-how-specific-objects-should-be-converted-to-their-string-representation

Laravel Tip 💡 You can use the 'Blade::stringable' method to convert objects into their string representation. For example, automatically convert a Money object and show the amount in a specific currency.