Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/././../.././app/Events/.
الملفات الموجودة في هذا الـ Path:
.
..
MailEvent.php
SendEMail.php

مشاهدة ملف: MailEvent.php

<?php

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class MailEvent
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public $type;
    public $campaign_id;
    public $email_queue_id;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct($type,$campaignId,$emailQueueId)
    {
        $this->type = $type;
        $this->campaign_id = $campaignId;
        $this->email_queue_id = $emailQueueId;
    }

    /**
     * Get the channels the event should broadcast on.
     *
     * @return \Illuminate\Broadcasting\Channel|array
     */
    public function broadcastOn()
    {
        return new PrivateChannel('channel-name');
    }
}