mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
22 lines
345 B
PHP
22 lines
345 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;
|
||
|
public $user;
|
||
|
|
||
|
public function __construct(Song $song, User $user)
|
||
|
{
|
||
|
$this->song = $song;
|
||
|
$this->user = $user;
|
||
|
}
|
||
|
}
|