Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tarkhov/eloquent-cache
- Owner: tarkhov
- License: mit
- Created: 2018-01-20T09:31:55.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T00:26:22.000Z (almost 3 years ago)
- Last Synced: 2024-04-20T06:02:09.486Z (8 months ago)
- Topics: cache, composer, database, db, laravel, orm, php
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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