mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
487 B
487 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| The `shouldCache()` method lets you cache model accessor values | 1515057389950537729 | weekly-thread-2022-15 | cosmeescobedo |
|
2022-04-15T20:00:04+00:00 | the-shouldcache-method-lets-you-cache-model-accessor-values |
🔥 Laravel Tip: Accessor Caching
As of Laravel 9.6, if you have a computationally intensive accessor, you can use the shouldCache method.