You could also do it like this
$path = $request->file("file_input_name")->store("images/product/");
$url = Storage::url($path);
$product["image_url"] = $url;
That's going to save it as: "/storage/images/product/filename.ext"
And then access it from your view direclty:
<img src="{{$product->image_url}}"/>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community