Files
rspade_system/app/RSpade/Commands/Restricted/Event_Cache_Command.php
root 29c657f7a7 Exclude tests directory from framework publish
Add 100+ automated unit tests from .expect file specifications
Add session system test
Add rsx:constants:regenerate command test
Add rsx:logrotate command test
Add rsx:clean command test
Add rsx:manifest:stats command test
Add model enum system test
Add model mass assignment prevention test
Add rsx:check command test
Add migrate:status command test

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 03:59:58 +00:00

46 lines
1.0 KiB
PHP

<?php
namespace App\RSpade\Commands\Restricted;
use Illuminate\Console\Command;
class Event_Cache_Command extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'event:cache';
/**
* The console command description.
*
* @var string
*/
protected $description = '[RESTRICTED] Use optimize:cache instead to cache all Laravel components';
/**
* Hide this command from artisan list
*
* @var bool
*/
protected $hidden = true;
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$this->error('This command has been restricted in RSX.');
$this->line('');
$this->info('Please use the following command instead:');
$this->line(' php artisan optimize:cache');
$this->line('');
$this->comment('The optimize:cache command will cache all Laravel components including events.');
return 1;
}
}