for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Events;
use App\Models\Candidate;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class CandidateApplied
{
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
Illuminate\Queue\SerializesModels
App\Events\CandidateApplied
$id
$relations
$class
$connection
$keyBy
/**
* @var Candidate
*/
public $candidate;
* Create a new event instance.
*
* @return void
public function __construct(Candidate $candidate)
$this->candidate = $candidate;
}
* Get the channels the event should broadcast on.
* @return \Illuminate\Broadcasting\Channel|array
public function broadcastOn()
return new PrivateChannel('channel-name');