Skip to content

Commit

Permalink
#6 feat: create the config to override filesystem configs of Laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 11, 2024
1 parent 4c9ca42 commit 9be2453
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -70,7 +99,7 @@
*/

'links' => [
public_path('storage') => storage_path('app/public'),
//
],

];

0 comments on commit 9be2453

Please sign in to comment.