koel/app/Events/SongStartedPlaying.php

22 lines
345 B
PHP
Raw Normal View History

2015-12-23 06:26:16 +00:00
<?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;
}
}