* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0 */ namespace App\Console\Commands; use Exception; use Illuminate\Console\Command; use Throwable; class SetCache extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'set:all_cache'; /** * The console command description. * * @var string */ protected $description = "Sets Several Common Cache's ..."; /** * Execute the console command. * * @throws Exception|Throwable If there is an error during the execution of the command. */ final public function handle(): void { $this->comment("Setting several common cache's ..."); $this->call('view:cache'); $this->call('route:cache'); $this->call('config:cache'); } }