If you want to automatically cache your request, you must override the methods find (), findOrFail (), where () ...
Because of how Eloquent is created, you cannot just add the find () method to your own model class
https://laracasts.com/discuss/channels/eloquent/override-find-method/replies/72028
class MyCacheModel extends \Illuminate\Database\Eloquent\Model {
Then in your model, instead of the Eloquent \ Model extension, it now continues from your MyCacheModel. With a few settings, you can set how long query caching will take, and if the model should not be cached, just use Eloquent \ Model.
source share