src/modules/Slack/SlackMessageSender.php
/**
     * Sends message to slack channel or channels
     *
     * @param $channels
     * @param $message
     */
Sends message to slack channel or channels
@param $channels
@param $message
Sends message to slack channel or channels @param $channels @param $message
public function toChannel($channels, $message)
    {
        $channels = is_array($channels) ? $channels : [$channels];
        foreach ($channels as $channel) {
            $channel = (substr($channel, 0, 1) === '#') ? $channel : "#{$channel}";
            $this->getMessage()->to($channel)->send($message);
        }
    }
public function toChannel ( $ channels , $ message ) { $ channels = is_array ( $ channels ) ? $ channels : [ $ channels ] ; foreach ( $ channels as $ channel ) { $ channel = ( substr ( $ channel , 0 , 1 ) === '#' ) ? $ channel : " # { $ channel } " ; $ this -> getMessage ( ) -> to ( $ channel ) -> send ( $ message ) ; } }
Sends message to slack channel or channels
 @param $channels
 @param $message
Sends message to slack channel or channels @param $channels @param $message