File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Or you can simply change the default log channel in the .env
42
42
LOG_CHANNEL=telegram
43
43
```
44
44
45
- Publish config file
45
+ Publish config file and views
46
46
```
47
47
php artisan vendor:publish --provider "Logger\TelegramLoggerServiceProvider"
48
48
```
@@ -71,6 +71,14 @@ For using this package you need to create Telegram bot
71
71
4 . Get token and add it to your .env file (it is written above)
72
72
5 . Go to your bot and send `` /start `` message
73
73
74
+ ## Change log template at runtime
75
+
76
+ 1 . Change config for template.
77
+ ``` php
78
+ config(['telegram-logger.template'=>'laravel-telegram-logging::custom'])
79
+ ```
80
+ 2 . Call ` Logger ` as usual.
81
+
74
82
## Lumen support
75
83
76
84
To make it work with Lumen, you need also run two steps:
You can’t perform that action at this time.
0 commit comments