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

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