Eloquent · Model Caching · Per-user Isolation
Laravel Modelcache
Attach cached values to Eloquent models, with each user's data kept in its own namespace.
Latest release
1.4.3
Requires
PHP ^8.2
Laravel
12.x / 13.x
Licence
MIT
$ composer require foxws/laravel-modelcache
Introduction
Laravel Model Cache lets you attach cached values to Eloquent models — either to one record or to the whole class — using any Laravel cache driver. Each logged-in user gets their own cache namespace by default, so two users never see each other's cached value for the same model.
Continue to Installation to get started.
