mirror of
https://github.com/koel/koel
synced 2024-12-29 22:13:06 +00:00
21 lines
355 B
PHP
21 lines
355 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Song;
|
|
use App\Models\User;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class SongStartedPlaying extends Event
|
|
{
|
|
use SerializesModels;
|
|
|
|
public Song $song;
|
|
public User $user;
|
|
|
|
public function __construct(Song $song, User $user)
|
|
{
|
|
$this->song = $song;
|
|
$this->user = $user;
|
|
}
|
|
}
|