koel/app/Events/SongStartedPlaying.php
2018-08-29 13:15:23 +07:00

21 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;
}
}