PHP Class App\Events\SongStartedPlaying

Inheritance: extends App\Events\Event, use trait Illuminate\Queue\SerializesModels
Mostra file Open project: phanan/koel

Public Properties

Property Type Description
$song app\models\Song The now playing song.
$user app\models\User The user listening.

Public Methods

Method Description
__construct ( Song $song, User $user ) Create a new event instance.
broadcastOn ( ) : array Get the channels the event should be broadcast on.

Method Details

__construct() public method

Create a new event instance.
public __construct ( Song $song, User $user )
$song app\models\Song
$user app\models\User

broadcastOn() public method

Get the channels the event should be broadcast on.
public broadcastOn ( ) : array
return array

Property Details

$song public_oe property

The now playing song.
public Song,App\Models $song
return app\models\Song

$user public_oe property

The user listening.
public User,App\Models $user
return app\models\User