Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tarkhov/eloquent-cache

Laravel Eloquent model auto caching.
https://github.com/tarkhov/eloquent-cache

cache composer database db laravel orm php

Last synced: 2 months ago
JSON representation

Laravel Eloquent model auto caching.

Awesome Lists containing this project

README

        

# Eloquent cache

Laravel Eloqeunt model auto caching.

### Contents

1. [Compatibility](#compatibility)
2. [Installation](#installation)
1. [Composer](#composer)
3. [Usage](#usage)
1. [Inherit model](#inherit-model)
4. [Author](#author)
5. [License](#license)

## Compatibility

Library | Version
------- | -------
Laravel | 5.5

## Installation

### Composer

```bash
composer require tarkhov/eloquent-cache
```

## Usage

### Inherit model

Start using caching features by inheriting `CacheModel` class.

```php
belongsTo('App\Category', 'category_id');
}
}
```

```php