|
|
@@ -18,11 +18,12 @@ class AttachmentResource extends JsonResource
|
|
|
$data = [
|
|
|
"id" => $this->id,
|
|
|
"user_uid" => $this->user_uid,
|
|
|
- "name" => $this->name,
|
|
|
+ "name" => $this->bucket.'/'.$this->name,
|
|
|
+ "filename" => $this->bucket.'/'.$this->name,
|
|
|
"title" => $this->title,
|
|
|
"size" => $this->size,
|
|
|
"content_type" => $this->content_type,
|
|
|
- "url" => Storage::disk('public')->url($this->bucket.'/'.$this->name),
|
|
|
+ "url" => Storage::url($this->bucket.'/'.$this->name),
|
|
|
"status" => $this->status,
|
|
|
"created_at" => $this->created_at,
|
|
|
"updated_at" => $this->updated_at,
|