Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
a243473d24 | |||
d5ded08f5e | |||
dfa86d9dc8 | |||
0100c86442 | |||
bbaff88e41 | |||
42227c7e56 | |||
30040e8503 | |||
68c11c6b4a |
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -41,7 +41,7 @@ jobs:
|
||||
- name: Get Composer Cache Directory
|
||||
id: composer-cache
|
||||
run: |
|
||||
echo "::set-output name=dir::$(composer config cache-files-dir)"
|
||||
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Cache Composer dependencies
|
||||
uses: actions/cache@v3
|
||||
|
@ -1,4 +1,4 @@
|
||||
# php-mqtt/laravel-client
|
||||
# ykxiao/laravel-mqtt-client
|
||||
|
||||
[](https://packagist.org/packages/php-mqtt/laravel-client)
|
||||
[](https://packagist.org/packages/php-mqtt/laravel-client)
|
||||
@ -16,10 +16,10 @@ allows you to connect to an MQTT broker where you can publish messages and subsc
|
||||
|
||||
## Installation
|
||||
|
||||
The package is available on [packagist.org](https://packagist.org/packages/php-mqtt/laravel-client) and can be installed using composer:
|
||||
The package is available on [packagist.org](https://packagist.org/packages/ykxiao/laravel-mqtt-client) and can be installed using composer:
|
||||
|
||||
```bash
|
||||
composer require php-mqtt/laravel-client
|
||||
composer require ykxiao/laravel-mqtt-client
|
||||
```
|
||||
|
||||
The package will register itself through Laravel auto discovery of packages.
|
||||
@ -139,7 +139,7 @@ This library allows you to use all the features provided by [`php-mqtt/client`](
|
||||
Simply retrieve an instance of `\PhpMqtt\Client\Contracts\MqttClient` with `MQTT::connection(string $name = null)` and use it directly.
|
||||
|
||||
For an extensive collection of examples which explain how to use the MQTT client (directly),
|
||||
you can visit the [`php-mqtt/client-examples` repository](https://github.com/php-mqtt/client-examples).
|
||||
you can visit the [`php-mqtt/client-examples` repository](https://git.tool.dwoodauto.com/ykxiao/client-examples).
|
||||
|
||||
## License
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "php-mqtt/laravel-client",
|
||||
"description": "A wrapper for the php-mqtt/client library for Laravel.",
|
||||
"name": "ykxiao/laravel-mqtt-client",
|
||||
"description": "A wrapper for the ykxiao/laravel-mqtt-client library for Laravel.",
|
||||
"type": "library",
|
||||
"keywords": [
|
||||
"mqtt",
|
||||
@ -9,7 +9,7 @@
|
||||
"subscribe",
|
||||
"laravel"
|
||||
],
|
||||
"homepage": "https://github.com/php-mqtt/laravel-client",
|
||||
"homepage": "https://git.tool.dwoodauto.com/ykxiao/laravel-matt-client",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
|
@ -144,8 +144,8 @@ class ConnectionManager
|
||||
$settings = $this->buildConnectionSettings(Arr::get($config, 'connection_settings', []));
|
||||
$repository = $this->application->make($repository);
|
||||
$logger = $loggingEnabled ? $this->application->make('log') : null;
|
||||
|
||||
if($logger && $logChannel) {
|
||||
|
||||
if ($logger && $logChannel) {
|
||||
$logger = $logger->channel($logChannel);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user