I want to upload a image to a sub directory (public/uploads). after submit it returns successful but it doesn't save the image
public function storeMedia(Request $request)
{
$file = $request->file('productImage');
$name = trim($file->getClientOriginalName());
$folder = uniqid() . '_' . now()->timestamp;
$file->storeAs('uploads/'.$folder, $name, ['disk' => 'public']);
return $folder;
}
it returns 60dc27eb0eb92_1625040875 which is want I need but I can't find the uploaded file
publicdisc, so it will be in/storage/app/public/uploads.