Which disk are you using ?
Jan 8, 2023
23
Level 1
Images not showing in laravel 9.
Hello! There is a problem with the display of images on the site! I have an editor (TinyMCE5) and I installed (filemanager) on it, everything works as it should locally, but if I transfer it to the hosting, the pictures are not displayed, error 404.
Here's how it's done in file(filesystems.php)
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'throw' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
],
],
Please or to participate in this conversation.