File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -56,3 +56,23 @@ For using this package you need to create Telegram bot
56
56
3 . Set up name and bot-name for your bot.
57
57
4 . Get token and add it to your .env file (it is written above)
58
58
5 . Go to your bot and send `` /start `` message
59
+
60
+ ## Lumen support
61
+
62
+ To make it work with Lumen, you need also run two steps:
63
+
64
+ 1 . Place config/telegram-logger.php file with following code:
65
+ ``` php
66
+ <?php
67
+
68
+ return [
69
+ // Telegram logger bot token
70
+ 'token' => env('TELEGRAM_LOGGER_BOT_TOKEN'),
71
+
72
+ // Telegram chat id
73
+ 'chat_id' => env('TELEGRAM_LOGGER_CHAT_ID')
74
+ ];
75
+ ```
76
+
77
+ 2 . Uncomment ``` $app->withFacades(); ``` and configure the file ``` $app->configure('telegram-logger'); ``` at bootstrap/app.php
78
+ 3 . Place default Laravel/Lumen logging file to config/logging.php (to add new channel).
You can’t perform that action at this time.
0 commit comments