Manage Cache Items based on Model Queries
"Using the LaraCache package, you can cache your heavy and most used queries.
All you have to do is to define the
CacheEntity
objects in the model and specify a valid name and ttl for them.LaraCache will handle the rest of process automatically. It will create and update cache entities based on ttl that you've defined for each entity."
Mostafa Zeinivand