Hello,
I need help to understand something in the filesystems.php configuration file.
If I have this disk configuration, are the images private ?
'images' => [
'driver' => 'local',
'root' => storage_path('app/private/images'),
'url' => env('APP_URL').'/api/v1/images',
],
With Laravel, I have a controller to display private files from the above url value.
public function __invoke(Image $image)
{
return response()->file(Storage::path('images/'.$image->name));
}
But I notice that the request doesn't pass via the controller and directly displays the image.
Can you help me understand what happens ?
Can you help me display a private image from VueJS ?
Thanks for your help.
V