Is there is a way to access the storage directory, which is already linked to the public directory in JS?
I'm trying to make an upload image form. Validation script:
if ($request->hasFile('photos')) {
$marker->photos = $request->photos->store('uploads');
}
It saves image in /storage/app/uploads/
I can't use this image, because website is in public folder, and can't have access to any other folders, so I did php artisan storage:link to create a sublink to storage folder.
Now, how can I access the image using 1) PHP 2) JS?