for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Consigliere\Components\Traits;
trait CanClearComponentsCache
{
/**
* Clear the components cache if it is enabled
*/
public function clearCache()
if (config('components.cache.enabled') === true) {
app('cache')->forget(config('components.cache.key'));
}