Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Slack Slash Command Laravel Package

spatie/laravel-slack-slash-command

Build Slack slash commands in Laravel. Define handlers to validate and process incoming Slack requests, reply within 3 seconds or dispatch jobs for longer work, and send structured responses back to Slack. Includes request/response helpers and simple routing of commands.

View on GitHub
Deep Wiki
Context7

title: Making your attachments interactive weight: 4

On top of adding attachments to your messages, you can also make your attachments interactive.

Take a look at this response on Slack:

This is how you would build that up

$this->respondToSlack('')
    ->withAttachment(Attachment::create()
        ->setColor('good')
        ->setText('This is good!')
        ->setFallback('good-message')
        ->setCallbackId('good-1')
        ->addAction(Action::create('cool button', 'A Cool Button', 'button'))
    );

Make sure you use the correct classes:

use Spatie\SlashCommand\Attachment;
use Spatie\SlashCommand\AttachmentField;

Take a look at Slacks documentation on interactive messages to learn what's possible. Please note that at this time only buttons are supported, and menus are not.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport