PHPackages                             bluesik/laravel-cacheable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. bluesik/laravel-cacheable

ActivePackage[Caching](/categories/caching)

bluesik/laravel-cacheable
=========================

Cacheable trait for Laravel models

1362PHP

Since Jul 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Bluesik/Laravel-Cacheable)[ Packagist](https://packagist.org/packages/bluesik/laravel-cacheable)[ RSS](/packages/bluesik-laravel-cacheable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Cacheable trait
=======================

[](#laravel-cacheable-trait)

Description
-----------

[](#description)

This trait allows you to easily cache your model's data through a variety of handful methods.

**NOTE:**

- `Cache is automatically cleared when a given model is saved/deleted`

Installation
------------

[](#installation)

```
composer require bluesik/laravel-cacheable

```

Usage
-----

[](#usage)

Add at the top of your model file:

```
