| 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: | 2025-10-26 03:16:39 |
| Package Statistics | |
|---|---|
| Total Downloads: | 4 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Paquete para Laravel que se utiliza para caching de vistas.
En Config/App.php registrar un nuevo service provider:
Sargilla\Mamushka\MamushkaServiceProvider::class,
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