for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PWWEB\Localisation\Commands.
*
* Definition of the cache reset artisan command.
* @author Frank Pillukeit <[email protected]>
* @copyright 2020 pw-websolutions.com
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
namespace PWWEB\Localisation\Commands;
use Illuminate\Console\Command;
use PWWEB\Localisation\LocalisationRegistrar;
class CacheReset extends Command
{
* The console command name.
* @var string
protected $signature = 'pwweb:localisation:cache-reset';
* The console command description.
protected $description = 'Reset the localisation cache';
* Execute the console command.
* @return void
public function handle()
if (true === app(LocalisationRegistrar::class)->forgetCachedLanguages()) {
$this->info('Language cache flushed.');
} else {
$this->error('Unable to flush cache.');
}