File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
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 . Use ` Log ` as usual.
81
+
74
82
## Lumen support
75
83
76
84
To make it work with Lumen, you need also run two steps:
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function register()
28
28
public function boot ()
29
29
{
30
30
$ this ->loadViewsFrom (__DIR__ .'/views ' , 'laravel-telegram-logging ' );
31
- $ this ->publishes ([__DIR__ .'/views ' => base_path ('resources/views/vendor/laravel-telegram-logging ' )],'views ' );
31
+ $ this ->publishes ([__DIR__ .'/views ' => base_path ('resources/views/vendor/laravel-telegram-logging ' )], 'views ' );
32
32
$ this ->publishes ([__DIR__ . '/../config/telegram-logger.php ' => config_path ('telegram-logger.php ' )], 'config ' );
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments