@jontyjago ,
In that case,
< img src={{ "/storage/../" . $path }} />
should work.
However, just so I am clear, the ideal situation is to have it stored in the database as "/storage/filename" directly.
then I think @viktorivanov has the correct solution.
HOWEVER, thinking of your way, when you say the following:
$path = $request->file('docfile')->store('public');
you are telling the file to save it to the correct path, then not make that path visible, then save that not visible path to your database and reference the not visible path. For me that seems impossible, without manipulating the $path variable to make it correct.
From documentation, the correct way is to do the following:
By default, the public disk uses the local driver and stores these files in storage/app/public. To make them accessible from the web, you should create a symbolic link from public/storage to storage/app/public
However, you made a symbolic link from public/storage to /storage