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