2017 © Pedro Peláez
 

library eloquent-cache

Laravel Eloquent model cache.

image

tarkhov/eloquent-cache

Laravel Eloquent model cache.

  • Monday, July 9, 2018
  • by tarkhov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Eloquent cache

Laravel Eloqeunt model auto caching., (*1)

Contents

  1. Compatibility
  2. Installation
    1. Composer
  3. Usage
    1. Inherit model
  4. Author
  5. License

Compatibility

Library Version
Laravel 5.5

Installation

Composer

composer require tarkhov/eloquent-cache

Usage

Inherit model

Start using caching features by inheriting CacheModel class., (*2)

<?php
namespace App;

use EloquentCache\Database\Eloquent\CacheModel;

class Post extends CacheModel
{
    protected $fillable = [
        'category_id',
        'title',
        'description',
    ];

    public function category()
    {
        return $this->belongsTo('App\Category', 'category_id');
    }
}
<?php
namespace App;

use EloquentCache\Database\Eloquent\CacheModel;

class Category extends CacheModel
{
    protected $cacheTags = ['category'];
    protected $fillable = [
        'title',
        'description',
    ];
}

Author

Alexander Tarkhov, (*3)

License

This project is licensed under the MIT License - see the LICENSE file for details., (*4)

The Versions

09/07 2018

dev-master

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

Laravel Eloquent model cache.

  Sources   Download

MIT

The Requires

 

orm database laravel sql cache eloquent model

12/03 2018

v0.1.0

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

Automated Laravel database model caching.

  Sources   Download

MIT

The Requires

 

orm database laravel sql cache eloquent model