Skip to content
Laravel Slack notification channel with API token support instead of incoming webhooks.
Branch: master
Clone or download
Latest commit 9ea6f29 May 15, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src wip May 15, 2019
tests Provide channel in channel configuration May 15, 2019
.editorconfig initial commit May 15, 2019
composer.json initial commit May 15, 2019
phpunit.xml.dist initial commit May 15, 2019 Update May 15, 2019

Laravel Slack API Token Notification Channel

Latest Version on Packagist Build Status Quality Score Total Downloads

This is the Laravel Slack notification channel, but instead of using incoming webhooks, this channel makes use of OAuth access tokens.

If you want to learn how to create reusable PHP packages yourself, take a look at my upcoming PHP Package Development video course.


Install the package via composer:

composer require beyondcode/slack-notification-channel

The service provider gets registered automatically and you can use this package as a replacement of the core Laravel Slack notification channel.

Notification Routing

Since this notification channel makes use of Slack API tokens instead of incoming webhook URLs, you need to return an array containing the API token and an optional channel. This channel will be used, if it is not provided in the SlackMessage that you send:

public function routeNotificationForSlack()
    return [
        'token' => 'xoxp-slack-token',
        'channel' => '#general'


Please see CHANGELOG for more information what has changed recently.


Please see CONTRIBUTING for details.


If you discover any security related issues, please email instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.