Files
einundzwanzig-portal/app/Events/PlebLoggedInEvent.php
HolgerHatGarKeineNode c56ab25c7d return types corrected
2023-02-19 23:14:46 +01:00

34 lines
760 B
PHP

<?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 PlebLoggedInEvent implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(public string $name, public string $img)
{
//
}
/**
* Get the channels the event should broadcast on.
*
*/
public function broadcastOn(): \Illuminate\Broadcasting\Channel|array
{
return new Channel('plebchannel');
}
}