1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00

Week 15 of 2022

This commit is contained in:
Samuel Štancl 2022-04-17 20:03:34 +02:00
parent 105099cea8
commit 3ed17d8cef
7 changed files with 83 additions and 0 deletions

View file

@ -0,0 +1,13 @@
---
title: 'The `shouldCache()` method lets you cache model accessor values'
tweet_id: '1515057389950537729'
thread_slug: weekly-thread-2022-15
author_username: cosmeescobedo
images:
- 'https://pbs.twimg.com/media/FQOpEt5VQA0OnWt.jpg'
created_at: 2022-04-15T20:00:04+00:00
slug: 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.