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