在Laravel 5.8中上传的图片一直保存为私人图片

I am trying upload a single image into a Post and it keeps saving it as a private image--heck, I don't even know where to find that file.

PostController.php

...
if ($request->hasFile('photo')) {
    $photo = $request->photo;
    $ext = $photo->getClientOriginalExtension();
    $filename = uniqid() . '.' . $ext;
    $photo->storeAs('public/posts/' . $request->user()->id, $filename);
}
...

enter image description here

storeAs() function takes three parameters.

storeAs(path,name,options)

'options' is where you specify file visibility. In your case :

if ($request->hasFile('photo')) {
    $photo = $request->photo;
    $ext = $photo->getClientOriginalExtension();
    $filename = uniqid() . '.' . $ext;
    $photo->storeAs('posts/' . $request->user()->id, $filename,'public');
}