gpressutto5 / laravel-slack

:hash: Slack notification for Laravel as it should be. Easy, fast, simple and highly testable.
MIT License
289 stars 41 forks source link

Ability to configure multiple webhook URLs #16

Closed connecteev closed 3 years ago

connecteev commented 5 years ago

Given that Slack only allows you to send to one channel (or user) per webhook, this package needs the ability to configure multiple webhook URLs, so that I can send a slack message to #my-channel or @my-user using one package.

See #7 here which is related. It also seems like this has been solved by @tigran-cl in https://github.com/tigran-cl/laravel-slack but there is no pull request. @gpressutto5 would be great to integrate that into this package.

carlmagumpara commented 5 years ago

i got fix for this

`use Pressutto\LaravelSlack\Slack;

    $this->slack = new Slack([
      'slack_webhook_url' => 'your custom webhook url',
      'default_channel' => 'your custom channel',
      'application_name' => null,
      'application_image' => null
    ]);

  $this->slack->send('Sample Message.');`
gpressutto5 commented 3 years ago

Closed by #19