feat: add storage_url helper function and update image URL retrieval to use public disk

This commit is contained in:
2025-11-30 08:20:51 -05:00
parent 5f7f2098ec
commit d4c90da807
6 changed files with 47 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ class Show extends Component
{
return view('products.show')->layoutData([
'title' => $this->product->name,
'image' => $this->product->image ? Storage::url($this->product->image) : null,
'image' => $this->product->image ? Storage::disk('public')->url($this->product->image) : null,
]);
}
}