PHPackages                             sunaoka/laravel-slack-block-kit-web-hook-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sunaoka/laravel-slack-block-kit-web-hook-driver

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

sunaoka/laravel-slack-block-kit-web-hook-driver
===============================================

Laravel Log Driver for sending Block Kit messages to incoming webhooks in Slack.

v1.2.0(2mo ago)2129↓86.7%MITPHPPHP ^8.1CI passing

Since Jun 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/sunaoka/laravel-slack-block-kit-web-hook-driver)[ Packagist](https://packagist.org/packages/sunaoka/laravel-slack-block-kit-web-hook-driver)[ RSS](/packages/sunaoka-laravel-slack-block-kit-web-hook-driver/feed)WikiDiscussions develop Synced 3w ago

READMEChangelogDependencies (14)Versions (7)Used By (0)

Laravel Slack Log Driver (Block Kit with Incoming webhooks)
===========================================================

[](#laravel-slack-log-driver-block-kit-with-incoming-webhooks)

Laravel Log Driver for sending Block Kit messages to incoming webhooks in Slack.

[![Latest](https://camo.githubusercontent.com/e92465ec620b29c3874502a8a5e1addfc3b7dc504f341a3515eb78a50397c4f3/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f6c61726176656c2d736c61636b2d626c6f636b2d6b69742d7765622d686f6f6b2d6472697665722f76)](https://packagist.org/packages/sunaoka/laravel-slack-block-kit-web-hook-driver)[![License](https://camo.githubusercontent.com/b88a32406c62820a33ba7e5057be87288a26a9f60649b3ebd02a9c997d4380ce/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f6c61726176656c2d736c61636b2d626c6f636b2d6b69742d7765622d686f6f6b2d6472697665722f6c6963656e7365)](https://packagist.org/packages/sunaoka/laravel-slack-block-kit-web-hook-driver)[![PHP](https://camo.githubusercontent.com/3f448ec6de961e02b42e3a6fb1e2d951bf801fd27ea972a691ef650e6b2adf1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73756e616f6b612f6c61726176656c2d736c61636b2d626c6f636b2d6b69742d7765622d686f6f6b2d647269766572)](composer.json)[![Laravel](https://camo.githubusercontent.com/aa5ad7bdead0096a6c1ce1c228a837c91553bbb53e19258d736af0de855ad611/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2533453d25323031302e782d726564)](https://laravel.com/)[![Test](https://github.com/sunaoka/laravel-slack-block-kit-web-hook-driver/actions/workflows/test.yml/badge.svg?branch=develop)](https://github.com/sunaoka/laravel-slack-block-kit-web-hook-driver/actions/workflows/test.yml)[![codecov](https://camo.githubusercontent.com/d1d3b87d0d1df689e5820595eb77c3847a4be72c28cf0a9104a5d226d9d84d3b/68747470733a2f2f636f6465636f762e696f2f67682f73756e616f6b612f6c61726176656c2d736c61636b2d626c6f636b2d6b69742d7765622d686f6f6b2d6472697665722f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/sunaoka/laravel-slack-block-kit-web-hook-driver)

---

Installation
------------

[](#installation)

```
composer require sunaoka/laravel-slack-block-kit-web-hook-driver
```

Setup
-----

[](#setup)

`config/logging.php` configuration file:

```
return [
    'channels' => [
        'slack' => [
            'driver'   => 'custom',  // Set "custom" driver
            'url'      => env('LOG_SLACK_WEBHOOK_URL'),
            'username' => env('LOG_SLACK_USERNAME', 'Laravel Log'),
            'level'    => env('LOG_LEVEL', 'info'),
            'via'      => \Sunaoka\Laravel\Log\Slack::class
        ],
    ],
];
```

Usage
-----

[](#usage)

```
