You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
866 B

<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use App\Tweet;
class TweetAcceptedEvent
{
use Dispatchable, SerializesModels;
public $tweet;
public $previousMissionStatus;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Tweet $tweet, $previousMissionStatus)
{
$this->tweet = $tweet;
$this->previousMissionStatus = $previousMissionStatus;
}
/**
* Get the channels the event should broadcast on.
*
* @return Channel|array
*/
public function broadcastOn()
{
return [];
}
}