Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 419 Bytes

File metadata and controls

22 lines (15 loc) · 419 Bytes

🚀 Installation

Installing the package

Hop into your console and install the package via Composer:

composer require rennokki/laravel-eloquent-query-cache

Preparing the models

Each model you want to cache on should use the Rennokki\QueryCache\Traits\QueryCacheable trait.

use Rennokki\QueryCache\Traits\QueryCacheable;

class Podcast extends Model
{
    use QueryCacheable;
}