diff --git a/config/filesystems.php b/config/filesystems.php index e9d9dbd..f514f04 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -32,18 +32,47 @@ 'local' => [ 'driver' => 'local', - 'root' => storage_path('app'), + 'root' => env('FILESYSTEM_FILE_ROOT', storage_path('app')), + 'url' => env('ASSETS_URL', env('APP_URL').'/storage'), 'throw' => false, + 'permissions' => [ + 'file' => [ + 'public' => 0664, + 'private' => 0600, + ], + 'dir' => [ + 'public' => 0775, + 'private' => 0700, + ], + ], ], 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), - 'url' => env('APP_URL').'/storage', + 'url' => env('ASSETS_URL', env('APP_URL').'/storage'), 'visibility' => 'public', 'throw' => false, ], + 'prod' => [ + 'driver' => 'local', + 'root' => env('FILESYSTEM_FILE_ROOT', storage_path('app')), + 'url' => env('ASSETS_URL', env('APP_URL').'/storage'), + 'throw' => false, + 'visibility' => 'public', + 'permissions' => [ + 'file' => [ + 'public' => 0664, + 'private' => 0600, + ], + 'dir' => [ + 'public' => 0775, + 'private' => 0700, + ], + ], + ], + 's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), @@ -70,7 +99,7 @@ */ 'links' => [ - public_path('storage') => storage_path('app/public'), + // ], ];