PHPackages                             whtht/perfectly-cache - 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. whtht/perfectly-cache

AbandonedArchivedLibrary[Caching](/categories/caching)

whtht/perfectly-cache
=====================

Laravel database cache package

v4.3(4y ago)181.9k↓100%2MITPHP

Since Feb 1Pushed 4y ago2 watchersCompare

[ Source](https://github.com/whthT/perfectly-cache)[ Packagist](https://packagist.org/packages/whtht/perfectly-cache)[ RSS](/packages/whtht-perfectly-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (23)Used By (0)

PerfectlyCache
==============

[](#perfectlycache)

Laravel eloquent query cache package.

It serves to cache and use any queries you make without having to make any changes to the database, system, or queries.

PerfectlyCache automatically redirects the same query to the model when you need the same query by caching the results of the queries you make over the model.

### Installing

[](#installing)

- Composer Execute the following command to get the latest version of the package:

```
composer require whtht/perfectly-cache

```

- Publish Configuration

```
php artisan vendor:publish --provider="Whtht\PerfectlyCache\Providers\PerfectlyCacheServiceProvider"

```

- Use trait on your models
    add this code in your models / or add just your base model like this

```
