PHPackages                             martianatwork/laravel-query-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. martianatwork/laravel-query-cache

ActiveLibrary[Caching](/categories/caching)

martianatwork/laravel-query-cache
=================================

A laravel query cache

v1.0(7y ago)047MITPHPPHP &gt;=7.0

Since May 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/martianatwork/laravel-query-cache)[ Packagist](https://packagist.org/packages/martianatwork/laravel-query-cache)[ RSS](/packages/martianatwork-laravel-query-cache/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Query Cache
===================

[](#laravel-query-cache)

[![Build Status](https://camo.githubusercontent.com/f19095556575fef2a79c8b14a9c6e98ea7f5140d94aced6a7c583d4eabc50a69/68747470733a2f2f7472617669732d63692e6f72672f6d61727469616e6174776f726b2f6c61726176656c2d71756572792d63616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/martianatwork/laravel-query-cache)

[![Packagist](https://camo.githubusercontent.com/4067f950a4bd8d8a7b0420addf0bce3b7aeba29e4f2cc496e9603112aaa28b53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61727469616e6174776f726b2f6c61726176656c2d71756572792d63616368652e737667)](https://packagist.org/packages/martianatwork/laravel-query-cache)[![Packagist](https://camo.githubusercontent.com/f97e0716d79905afa75e6dd7ac6c9fd21c9bc01abfe12e93e400f11656afa803/68747470733a2f2f706f7365722e707567782e6f72672f6d61727469616e6174776f726b2f6c61726176656c2d71756572792d63616368652f642f746f74616c2e737667)](https://packagist.org/packages/martianatwork/laravel-query-cache)[![Packagist](https://camo.githubusercontent.com/3aadc1e9f418ae7f26ebac5f9aeb97b121310606ebeb06be63bcbd6e09fa3432/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d61727469616e6174776f726b2f6c61726176656c2d71756572792d63616368652e737667)](https://packagist.org/packages/martianatwork/laravel-query-cache)

Package description: A package for Caching Eloquent quries

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

[](#installation)

Install via composer

```
composer require martianatwork/laravel-query-cache
```

Usage
-----

[](#usage)

### Basics

[](#basics)

The easiest way to get started with Eloquent is to create an abstract `App\Model` which you can extend your application models from. In this base model you can import the rememberable trait which will extend the same caching functionality to any queries you build off your model.

```
