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.
codraw/framework-extra-bundle
codraw/messenger
codraw/security
codraw/mailer
codraw/contracts
codraw/profiling
codraw/dependency-injection
codraw/tester
codraw/core
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony