<?php

namespace App\Events;

use App\LaborReport;
use App\UserDutyCheck;
use Illuminate\Broadcasting\Channel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Queue\SerializesModels;


class ExportEvent implements ShouldBroadcast
{
    use  SerializesModels;

    public $laborReport;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct(LaborReport $laborReport)
    {
        $this->laborReport=$laborReport;
    }

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

}
