feat: add storage_url helper function and update image URL retrieval to use public disk
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user