Registry /
messaging / laravel-slack-notification-channel
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SlackWebhookChannel
✓ use Illuminate\Notifications\Channels\SlackWebhookChannel;
Define a notification that sends a Slack message.
use Illuminate\Notifications\Channels\SlackWebhookChannel;
use Illuminate\Notifications\Notification;
class OrderShipped extends Notification
{
public function via($notifiable)
{
return [SlackWebhookChannel::class];
}
public function toSlack($notifiable)
{
return (new SlackMessage)->content('Order shipped!');
}
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.