<?php

namespace App\Events;

use App\Events\Event;
use App\Models\Message;
use App\Models\CoreEvent;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class MessageEvent extends Event
{
    use SerializesModels;

    public $message;

    public $core_event;
    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct(Message $message, CoreEvent $coreEvent)
    {
        $this->message = $message;
        $this->core_event = $coreEvent;
    }

    /**
     * Get the channels the event should be broadcast on.
     *
     * @return array
     */
    public function broadcastOn()
    {
        return [];
    }
}
