* * @version 1.0.0 */ class NotificationGlobal extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'notification:global {message}'; /** * The console command description. * * @var string */ protected $description = 'Enviar notificación a todos los usuarios'; /** * Execute the console command. * * @return int */ public function handle() { $message = $this->argument('message'); broadcast(new GlobalNotification( $message, "info", 15 )); return Command::SUCCESS; } }