• Reading time ~ 1 min
  • 04.08.2023

The Laravel team released improvements to the Slack notification channel to support the Slack Block Kit API for building rich, interactive notifications. This includes major improvements to the documentation, including instructions on sending Slack notifications to external workspaces:

return (new SlackMessage)
    ->text('One of your invoices has been paid!')
    ->headerBlock('Invoice Paid')
    ->contextBlock(function (ContextBlock $block) {
        $block->text('Customer #1234');
    ->sectionBlock(function (SectionBlock $block) {
        $block->text('An invoice has been paid.');
        $block->field("*Invoice No:*\n1000")->markdown();
        $block->field("*Invoice Recipient:*\[email protected]")->markdown();
    ->sectionBlock(function (SectionBlock $block) {

The updated Laravel docs also include information about Slack interactivity with this notification channel that can handle user interaction.

The documentation also includes updated instructions on notifying external Slack workspaces owned by your application users. Socialite has been updated to obtain a bot token easily.

Read more about these updates in the Slack Notifications documentation. If you are interested in the Slack notification updates, check out Pull Request #64 in the · laravel/slack-notification-channel GitHub repo.


No comments yet
Yurij Finiv

Yurij Finiv

Full stack


Professional Fullstack Developer with extensive experience in website and desktop application development. Proficient in a wide range of tools and technologies, including Bootstrap, Tailwind, HTML5, CSS3, PUG, JavaScript, Alpine.js, jQuery, PHP, MODX, and Node.js. Skilled in website development using Symfony, MODX, and Laravel. Experience: Contributed to the development and translation of MODX3 i...

About author CrazyBoy49z
Ukraine, Lutsk