1 <?php |
1 <?php |
2 |
2 |
3 return [ |
3 return [ |
4 |
4 |
5 /* |
5 /* |
6 |-------------------------------------------------------------------------- |
6 |-------------------------------------------------------------------------- |
7 | Default Filesystem Disk |
7 | Default Filesystem Disk |
8 |-------------------------------------------------------------------------- |
8 |-------------------------------------------------------------------------- |
9 | |
9 | |
10 | Here you may specify the default filesystem disk that should be used |
10 | Here you may specify the default filesystem disk that should be used |
11 | by the framework. A "local" driver, as well as a variety of cloud |
11 | by the framework. A "local" driver, as well as a variety of cloud |
12 | based drivers are available for your choosing. Just store away! |
12 | based drivers are available for your choosing. Just store away! |
13 | |
13 | |
14 | Supported: "local", "s3", "rackspace" |
14 | Supported: "local", "s3", "rackspace" |
15 | |
15 | |
16 */ |
16 */ |
17 |
17 |
18 'default' => 'local', |
18 'default' => 'local', |
19 |
19 |
20 /* |
20 /* |
21 |-------------------------------------------------------------------------- |
21 |-------------------------------------------------------------------------- |
22 | Default Cloud Filesystem Disk |
22 | Default Cloud Filesystem Disk |
23 |-------------------------------------------------------------------------- |
23 |-------------------------------------------------------------------------- |
24 | |
24 | |
25 | Many applications store files both locally and in the cloud. For this |
25 | Many applications store files both locally and in the cloud. For this |
26 | reason, you may specify a default "cloud" driver here. This driver |
26 | reason, you may specify a default "cloud" driver here. This driver |
27 | will be bound as the Cloud disk implementation in the container. |
27 | will be bound as the Cloud disk implementation in the container. |
28 | |
28 | |
29 */ |
29 */ |
30 |
30 |
31 'cloud' => 's3', |
31 'cloud' => 's3', |
32 |
32 |
33 /* |
33 /* |
34 |-------------------------------------------------------------------------- |
34 |-------------------------------------------------------------------------- |
35 | Filesystem Disks |
35 | Filesystem Disks |
36 |-------------------------------------------------------------------------- |
36 |-------------------------------------------------------------------------- |
37 | |
37 | |
38 | Here you may configure as many filesystem "disks" as you wish, and you |
38 | Here you may configure as many filesystem "disks" as you wish, and you |
39 | may even configure multiple disks of the same driver. Defaults have |
39 | may even configure multiple disks of the same driver. Defaults have |
40 | been setup for each driver as an example of the required options. |
40 | been setup for each driver as an example of the required options. |
41 | |
41 | |
42 */ |
42 */ |
43 |
43 |
44 'disks' => [ |
44 'disks' => [ |
45 |
45 |
46 'local' => [ |
46 'local' => [ |
47 'driver' => 'local', |
47 'driver' => 'local', |
48 'root' => storage_path().'/app', |
48 'root' => storage_path().'/app', |
49 ], |
49 ], |
50 |
50 |
51 's3' => [ |
51 's3' => [ |
52 'driver' => 's3', |
52 'driver' => 's3', |
53 'key' => 'your-key', |
53 'key' => 'your-key', |
54 'secret' => 'your-secret', |
54 'secret' => 'your-secret', |
55 'region' => 'your-region', |
55 'region' => 'your-region', |
56 'bucket' => 'your-bucket', |
56 'bucket' => 'your-bucket', |
57 ], |
57 ], |
58 |
58 |
59 'rackspace' => [ |
59 'rackspace' => [ |
60 'driver' => 'rackspace', |
60 'driver' => 'rackspace', |
61 'username' => 'your-username', |
61 'username' => 'your-username', |
62 'key' => 'your-key', |
62 'key' => 'your-key', |
63 'container' => 'your-container', |
63 'container' => 'your-container', |
64 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/', |
64 'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/', |
65 'region' => 'IAD', |
65 'region' => 'IAD', |
66 'url_type' => 'publicURL' |
66 'url_type' => 'publicURL', |
67 ], |
67 ], |
68 |
68 |
69 ], |
69 ], |
70 |
70 |
71 ]; |
71 ]; |