diff --git a/config/filesystems.php b/config/filesystems.php index 2ead0213..defb1c66 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -53,7 +53,9 @@ 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), - 'url' => env('APP_URL') . '/storage', + 'url' => (bool) env('FILESYSTEM_PUBLIC_ABSOLUTE_URL', true) + ? env('APP_URL') . '/storage' + : '/storage', 'visibility' => 'public', ],