laravel-slack maintained by joeri-abbo
Description
Laravel slack Package
Author
Last update
2026/04/20 14:15
(dev-dependabot/github_actions/dependabot/fetch-metadata-3.1.0)
Downloads
214
Getting Started
Prerequisites
- Php 8 and up
- Laravel 9
Installation
To get started require the package with composer.
composer require joeri-abbo/laravel-slack
Publish the package for laravel
php artisan vandor:publish --provider="JoeriAbbo\LaravelSlack\LaravelSlackServiceProvider"
Now go to your config folder and edit the slack.php file. Add your channel id and channel name like below
<?php
return [
'bearer_token' => env('SLACK_BEARER_TOKEN'),
'channels' => [
'my-new-log-channel' => '#ID-of-slack-channel',
]
];
Now add the JoeriAbbo\Slack\SlackPackageServiceProvider:class to your providers array in config/app.php
And add your bearer token to your .env file with SLACK_BEARER_TOKEN
Now you can easily use the slack for logging or notifications. To notify the channel use the following function.
app('slack.log')->sendMessage('This is a test message')
Usage
Releases
version 1.0.0
- Initial release