We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f0d4e2 commit 776f044Copy full SHA for 776f044
1 file changed
app/Domains/Social/Jobs/Publish/TelegramPublishJob.php
@@ -13,6 +13,7 @@
13
use Illuminate\Queue\InteractsWithQueue;
14
use Illuminate\Queue\SerializesModels;
15
use Illuminate\Support\Facades\Http;
16
+use Storage;
17
18
/**
19
* Class TelegramPublishJob.
@@ -126,10 +127,11 @@ public function handle()
126
127
default => 'application/octet-stream'
128
};
129
130
+ $path = str_replace(appUrl() . '/storage', 'public', $this->cards->getPicture());
131
$response = Http::attach(
132
'photo',
- $this->cards->getPicture(),
- basename($this->cards->getPicture()),
133
+ Storage::get($path),
134
+ basename($path),
135
['Content-Type' => $contentType]
136
)->post($url, [
137
'chat_id' => $this->platform->config['chat_id'],
0 commit comments