Access the underlying MqttClient for advanced features
masterThe Laravel client is a wrapper around php-mqtt/client. You can access the full power of the underlying library by retrieving the MqttClient contract via the MQTT facade.
use PhpMqtt\Client\Facades\MQTT;
/** @var \PhpMqtt\Client\Contracts\MqttClient $mqtt */
$mqtt = MQTT::connection('connection_name');
// Now you have access to all methods defined in \PhpMqtt\Client\Contracts\MqttClient