File "CompanyUrlEvent.php"

Full Path: /home/isoftco/public_html/hrm/app/Events/CompanyUrlEvent.php
File size: 588 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Events;

use App\Models\Company;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class CompanyUrlEvent
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public $company;
    public function __construct(Company $company)
    {
        $this->company = $company;
    }

    /**
     * @return PrivateChannel
     */
    public function broadcastOn()
    {
        return new PrivateChannel('forgot-company');
    }
}