sargilla / mamushka by sargilla

Caching for Laravel
4
1
3
Package Data
Maintainer Username: sargilla
Maintainer Contact: sargilla@gmail.com (santiago argilla)
Package Create Date: 2016-02-22
Package Last Update: 2023-01-24
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 15:01:54
Package Statistics
Total Downloads: 4
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

Sargilla/Mamushka Laravel Cache Class

Paquete para Laravel que se utiliza para caching de vistas.

INSTALACION

En Config/App.php registrar un nuevo service provider:

Sargilla\Mamushka\MamushkaServiceProvider::class,

USO

En los metodos agregar el metodo cacheable

use Sargilla\Mamushka\Cacheable;

class MyModel extends Model { use Cacheable;

En el controlador: return view('micontrolador.index', compact('controlador'));

Y en las vistas

@cache($controlador) @foreach ($controlador->items as $item) echo $item; @endforeach @endcache