* * @version 1.0.0 */ class DownSecure extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'down:secure'; /** * The console command description. * * @var string */ protected $description = 'Modo mantenimiento con un hash seguro'; /** * Execute the console command. * * @return int */ public function handle() { $secret = Uuid::uuid4(); Artisan::call('down', [ '--secret' => $secret ]); echo url($secret); echo "\n"; Log::channel('notsoweb')->info("Maintenance Mode Secure. Key: {$secret}"); return Command::SUCCESS; } }