| Package Data | |
|---|---|
| Maintainer Username: | topcu |
| Maintainer Contact: | hctopcu@gmail.com (H. Çağrı TOPÇU) |
| Package Create Date: | 2015-02-01 |
| Package Last Update: | 2017-05-12 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-19 15:22:07 |
| Package Statistics | |
|---|---|
| Total Downloads: | 15 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Another Dummy Cache driver, which can log every call made to the driver if enabled by config.
Via Composer
$ composer require topcu/dumber
Add the service provider to the providers array in config/app.php.
# ...
'providers' => array(
# ...
'Topcu\Dumber\DumberServiceProvider',
),
# ...
In your config/cache.php change add a store using dumber as driver.
# ...
'stores' => [
# ...
'dumber' => [
'driver' => 'dumber',
],
# ...
And set your default store if needed.
'default' => 'dumber',
If you wish to enable logging, you need do publish package config file and set log_enabled to true
php artisan vendor:publish --provider="Topcu\Dumber\DumberServiceProvider"
app/config/dumber.php :
<?php
return [
"log_enabled" => true,
"log_level" => "notice"
];
You can also enable/disable logging on-the-fly with $cache->enableLog() and $cache->disableLog()