mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
11 lines
648 B
Markdown
11 lines
648 B
Markdown
---
|
|
title: 'You can use Blade::stringable() to define how specific objects should be converted to their string representation'
|
|
tweet_id: '1479467939191345152'
|
|
thread_slug: weekly-thread-2022-01
|
|
author_username: Philo01
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FHn41aBXsAAUyar.jpg'
|
|
created_at: 2022-01-07T15:00:18+00:00
|
|
slug: 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.
|