getBaseUrl(); $url = "{$baseUrl}/chat.postMessage"; $channel = $notifiable->routeNotificationFor("slack", $notification); return Http::withToken($this->getClientToken()) ->post($url, [ "channel" => $channel, "text" => $notification->toSlack($notifiable), ]); } protected function getClientToken(): string { return config("services.slack.client_token"); } protected function getBaseUrl(): string { return config("services.slack.url"); } }