Skip to content

sargilla/mamushka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages