'channel' => config('service.slack.channel'), 'text' => $this->site1['text'], 'username' => config('service.slack.username'), 'icon_emoji' => config('service.slack.icon'), 'attachments' => [ [ 'image_url' => $this->imageUrl, 'color' => 'good' ] ] ]; $guzzle = new \GuzzleHttp\Client(); $guzzle->post(config('service.slack.webhook_url'), [ 'body' => json_encode($payload), ]); });