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