for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Foundation\Console;
use Foundation\Cache\ModelCache;
use Illuminate\Console\Command;
class ClearModelsCacheCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $signature = 'cache:model:clear';
* The console command description.
protected $description = 'Clear the model cache.';
* Execute the console command.
* @return void
public function handle()
ModelCache::clearAll();
$this->info('Model cache has been reset!');
}