Download the PHP package quankim/laravel-counter-cache without Composer
On this page you can find all versions of the php package quankim/laravel-counter-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download quankim/laravel-counter-cache
More information about quankim/laravel-counter-cache
Files in quankim/laravel-counter-cache
Download quankim/laravel-counter-cache
More information about quankim/laravel-counter-cache
Files in quankim/laravel-counter-cache
Vendor quankim
Package laravel-counter-cache
Short Description Counter Cache for Laravel 5
License MIT
Package laravel-counter-cache
Short Description Counter Cache for Laravel 5
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-counter-cache
Laravel Package: Counter Cache
Package Counter Cache for Laravel 5
Feature Overview
- Increment counter automatically when creating a new record.
- Decrement counter automatically when deleting a record.
- Update counter automatically when updating a record
- Update rating_average automatically when CRUD a record
- Custom field when CRUD a record
Install
Usage
I will use the example products/comments, one product have many comments
Migration
Table products:
Table comments:
Model
Model Product:
Model Comment:
if you use boot()
function in Model Comment, you must define as below:
Add Conditions
Credits
Vo Hong Quan
All versions of laravel-counter-cache with dependencies
PHP Build Version
Package Version
No informations.
The package quankim/laravel-counter-cache contains the following files
Loading the files please wait ....