diff --git a/README.md b/README.md index a4b8ce9..35c153e 100644 --- a/README.md +++ b/README.md @@ -56,3 +56,23 @@ For using this package you need to create Telegram bot 3. Set up name and bot-name for your bot. 4. Get token and add it to your .env file (it is written above) 5. Go to your bot and send ``/start`` message + +## Lumen support + +To make it work with Lumen, you need also run two steps: + +1. Place config/telegram-logger.php file with following code: +```php + env('TELEGRAM_LOGGER_BOT_TOKEN'), + + // Telegram chat id + 'chat_id' => env('TELEGRAM_LOGGER_CHAT_ID') +]; +``` + +2. Uncomment ```$app->withFacades();``` and configure the file ```$app->configure('telegram-logger');``` at bootstrap/app.php +3. Place default Laravel/Lumen logging file to config/logging.php (to add new channel).