PresenceChannel.php
TLDR
This file contains the definition of the PresenceChannel
class in the Illuminate\Broadcasting
namespace. The PresenceChannel
class inherits from the Channel
class and has a constructor that appends the name with 'presence-'.
Classes
PresenceChannel
The PresenceChannel
class is a class in the Illuminate\Broadcasting
namespace. It extends the Channel
class. This class represents a presence channel, which is a type of channel used for broadcasting events to a subset of connected users. The PresenceChannel
class has a constructor that takes a name
parameter and appends it with 'presence-'.
<?php
namespace Illuminate\Broadcasting;
class PresenceChannel extends Channel
{
/**
* Create a new channel instance.
*
* @param string $name
* @return void
*/
public function __construct($name)
{
parent::__construct('presence-'.$name);
}
}