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

ActiveLibrary[Caching](/categories/caching)

mtgofa/perfectly-cache
======================

Laravel database cache package

v5.0.1(1mo ago)019MITPHPPHP ^8.0

Since Feb 1Pushed 1mo agoCompare

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

READMEChangelogDependencies (5)Versions (26)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 mtgofa/perfectly-cache

```

- Publish Configuration

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

```

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

```
