* * @version 1.0.0 */ class NotificationStop extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'notification:stop'; /** * The console command description. * * @var string */ protected $description = 'Detener servicio de notificaciones en tiempo real'; /** * Execute the console command. * * @return int */ public function handle() { echo shell_exec('pm2 delete notification-server'); return Command::SUCCESS; } }