This commit is contained in:
HolgerHatGarKeineNode
2023-04-25 23:12:39 +02:00
parent 5a4322b035
commit d8dbc57cea
5 changed files with 156 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PaidMessageEvent implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(public string $message, public string $checkid)
{
//
}
/**
* Get the channels the event should broadcast on.
*
*/
public function broadcastOn(): \Illuminate\Broadcasting\Channel|array
{
return new Channel('plebchannel');
}
}