1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/the-shouldcache-method-lets-you-cache-model-accessor-values.md
2022-04-17 20:03:34 +02:00

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
https://pbs.twimg.com/media/FQOpEt5VQA0OnWt.jpg
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.