public function toSlack($notifiable)
    {
        return (new SlackMessage())
            ->error()
            ->from(
                config('health.notifications.from.name'),
                config('health.notifications.from.icon_emoji')
            )
            ->content($this->getMessage())
            ->attachment(function ($attachment) {
                $attachment
                    ->title($this->getActionTitle(), $this->getActionLink())
                    ->content($this->result->errorMessage);
            });
    }
public function toSlack($notifiable)
    {
        return (new SlackMessage())
            ->error()
            ->from(
                config('health.notifications.from.name'),
                config('health.notifications.from.icon_emoji')
            )
            ->content($this->getMessage())
            ->attachment(function ($attachment) {
                $attachment
                    ->title($this->getActionTitle(), $this->getActionLink())
                    ->content($this->result->errorMessage);
            });
    }
public function toSlack ( $ notifiable ) { return ( new SlackMessage ( ) ) -> error ( ) -> from ( config ( 'health.notifications.from.name' ) , config ( 'health.notifications.from.icon_emoji' ) ) -> content ( $ this -> getMessage ( ) ) -> attachment ( function ( $ attachment ) { $ attachment -> title ( $ this -> getActionTitle ( ) , $ this -> getActionLink ( ) ) -> content ( $ this -> result -> errorMessage ) ; } ) ; }
Create Slack message.

@param $notifiable
@return SlackMessage
Create Slack message .