Lenpaste

About

Docs

Settings

PHP, LF
  1<?php
  2
  3return [
  4
  5    /*
  6    |--------------------------------------------------------------------------
  7    | Default Filesystem Disk
  8    |--------------------------------------------------------------------------
  9    |
 10    | Here you may specify the default filesystem disk that should be used
 11    | by the framework. The "local" disk, as well as a variety of cloud
 12    | based disks are available to your application. Just store away!
 13    |
 14    */
 15
 16    'default' => env('FILESYSTEM_DRIVER', 'local'),
 17
 18    /*
 19    |--------------------------------------------------------------------------
 20    | Default Cloud Filesystem Disk
 21    |--------------------------------------------------------------------------
 22    |
 23    | Many applications store files both locally and in the cloud. For this
 24    | reason, you may specify a default "cloud" driver here. This driver
 25    | will be bound as the Cloud disk implementation in the container.
 26    |
 27    */
 28
 29    'cloud' => env('FILESYSTEM_CLOUD', 's3'),
 30
 31    /*
 32    |--------------------------------------------------------------------------
 33    | Filesystem Disks
 34    |--------------------------------------------------------------------------
 35    |
 36    | Here you may configure as many filesystem "disks" as you wish, and you
 37    | may even configure multiple disks of the same driver. Defaults have
 38    | been setup for each driver as an example of the required options.
 39    |
 40    | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
 41    |
 42    */
 43
 44    'disks' => [
 45
 46        'local' => [
 47            'driver' => 'local',
 48            'root'   => storage_path('app'),
 49            'permissions' => [
 50                'file' => [
 51                    'public' => 0644,
 52                    'private' => 0660,
 53                ],
 54                'dir' => [
 55                    'public' => 0755,
 56                    'private' => 0770,
 57                ],
 58            ],
 59        ],
 60
 61        'public' => [
 62            'driver'     => 'local',
 63            'root'       => storage_path('app/public'),
 64            'permissions' => [
 65                'file' => [
 66                    'public' => 0644,
 67                    'private' => 0660,
 68                ],
 69                'dir' => [
 70                    'public' => 0755,
 71                    'private' => 0770,
 72                ],
 73            ],
 74            'url'        => env('APP_URL').'/storage',
 75            'visibility' => 'public',
 76            'throw' => true,
 77        ],
 78
 79        's3' => [
 80            'driver'   => 's3',
 81            'key'      => env('AWS_ACCESS_KEY_ID'),
 82            'secret'   => env('AWS_SECRET_ACCESS_KEY'),
 83            'region'   => env('AWS_DEFAULT_REGION'),
 84            'bucket'   => env('AWS_BUCKET'),
 85            'visibility' => 'public',
 86            'url'      => env('AWS_URL'),
 87            'endpoint' => env('AWS_ENDPOINT'),
 88            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
 89            'throw' => true,
 90        ],
 91
 92        'spaces' => [
 93            'driver' => 's3',
 94            'key' => env('DO_SPACES_KEY'),
 95            'secret' => env('DO_SPACES_SECRET'),
 96            'endpoint' => env('DO_SPACES_ENDPOINT'),
 97            'region' => env('DO_SPACES_REGION'),
 98            'bucket' => env('DO_SPACES_BUCKET'),
 99            'visibility' => 'public',
100            'options' => [
101                'CacheControl' => 'max-age=31536000'
102            ],
103            'root' => env('DO_SPACES_ROOT',''),
104            'throw' => true,
105            'url' => env('AWS_URL'),
106        ],
107
108        'backup' => [
109            'driver' => env('PF_BACKUP_DRIVER', 's3'),
110            'visibility' => 'private',
111            'root' => env('PF_BACKUP_DRIVER', 'local') == 'local' ?
112                storage_path('app/backups/') :
113                env('PF_BACKUP_ROOT','/'),
114            'key' => env('PF_BACKUP_KEY'),
115            'secret' => env('PF_BACKUP_SECRET'),
116            'endpoint' => env('PF_BACKUP_ENDPOINT'),
117            'region' => env('PF_BACKUP_REGION'),
118            'bucket' => env('PF_BACKUP_BUCKET'),
119        ],
120
121    ],
122
123];

Author: adrien

Created: Sun, 23 Apr 2023 19:08:44 +0000

Expires: Never