Created
May 14, 2016 16:35
-
-
Save leemason/b875a725b6ad86f7ab03ad11b23b4728 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Events\Domains; | |
use App\Events\Event; | |
use App\Models\Domain; | |
use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
use Illuminate\Queue\SerializesModels; | |
class ScreenshotUpdated extends Event implements ShouldBroadcast | |
{ | |
use SerializesModels; | |
public $domain; | |
public function __construct(Domain $domain){ | |
$this->domain = $domain; | |
} | |
public function broadcastOn() | |
{ | |
return [$this->domain->host]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment