for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Modules\Setting\Events\Handlers;
use Illuminate\Contracts\Cache\Repository;
class ClearSettingsCache
{
/**
* @var Repository
*/
private $cache;
public function __construct(Repository $cache)
$this->cache = $cache;
}
public function handle()
$this->cache->tags('setting.settings')->flush();