* Working on Tokens CRUD * Fixes for company filters * Working on Token CRUD * Tests for tokens * Fixes for OPENApi * Subscriptions * Subscriptions
42 lines
990 B
PHP
42 lines
990 B
PHP
<?php
|
|
|
|
namespace App\Events\CompanyToken;
|
|
|
|
use App\Models\CompanyToken;
|
|
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 CompanyTokenWasDeleted
|
|
{
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
/**
|
|
* @var Company
|
|
*/
|
|
public $company_token;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param Company $company
|
|
*/
|
|
public function __construct(CompanyToken $company_token)
|
|
{
|
|
$this->company_token = $company_token;
|
|
}
|
|
|
|
/**
|
|
* Get the channels the event should broadcast on.
|
|
*
|
|
* @return \Illuminate\Broadcasting\Channel|array
|
|
*/
|
|
public function broadcastOn()
|
|
{
|
|
return new PrivateChannel('channel-name');
|
|
}
|
|
}
|