Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Model Self Cache

Laravel Model Self Cache Laravel Package

mixislv/laravel-model-self-cache

A Laravel package that gives Eloquent models self-caching capabilities, letting models cache their own queries and attributes automatically and invalidate cached data on create, update, or delete. Reduces repeated database hits with minimal changes to existing model code.

View on GitHub
Deep Wiki
Context7

laravel-model-self-cache lets your Eloquent models cache themselves automatically, removing boilerplate cache logic from your application. Add the provided trait to a model and its queries, attributes, and lookups are served from Laravel's cache until the underlying data changes.

Cache invalidation is handled for you: saving, updating, or deleting a model clears its cached entries, so you never serve stale records. It works with any configured cache store and stays out of the way of your code.

  • Self-caching Eloquent models via a simple trait
  • Automatic invalidation on save, update, and delete
  • Configurable TTL and cache store per model
  • Works with all Laravel cache drivers
  • Zero-config defaults, opt-in per model
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource