for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace GeneaLabs\LaravelModelCaching\Console\Commands;
use Illuminate\Console\Command;
class Flush extends Command
{
protected $signature = 'modelCache:flush {--model=}';
protected $description = 'Flush cache for a given model.';
public function handle()
$option = $this->option('model');
$model = new $option;
$model->flushCache();
}