visuddhinanda 2 лет назад
Родитель
Сommit
46ab32950e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Resources/AttachmentResource.php

+ 1 - 1
app/Http/Resources/AttachmentResource.php

@@ -22,7 +22,7 @@ class AttachmentResource extends JsonResource
             "title" => $this->title,
             "size" => $this->size,
             "content_type" => $this->content_type,
-            "url" => Storage::url($this->name),
+            "url" => Storage::disk('public')->url($this->bucket.'/'.$this->name),
             "status" => $this->status,
             "created_at" => $this->created_at,
             "updated_at" => $this->updated_at,