質問編集履歴

1

filesystems.phpについて追記

2017/12/20 09:33

投稿

sarada661
sarada661

スコア16

test CHANGED
File without changes
test CHANGED
@@ -145,3 +145,145 @@
145
145
 
146
146
 
147
147
  よろしくお願いします。
148
+
149
+
150
+
151
+ filesystems.php
152
+
153
+ ```PHP
154
+
155
+ <?php
156
+
157
+
158
+
159
+ return [
160
+
161
+
162
+
163
+ /*
164
+
165
+ |--------------------------------------------------------------------------
166
+
167
+ | Default Filesystem Disk
168
+
169
+ |--------------------------------------------------------------------------
170
+
171
+ |
172
+
173
+ | Here you may specify the default filesystem disk that should be used
174
+
175
+ | by the framework. The "local" disk, as well as a variety of cloud
176
+
177
+ | based disks are available to your application. Just store away!
178
+
179
+ |
180
+
181
+ */
182
+
183
+
184
+
185
+ 'default' => 'local',
186
+
187
+
188
+
189
+ /*
190
+
191
+ |--------------------------------------------------------------------------
192
+
193
+ | Default Cloud Filesystem Disk
194
+
195
+ |--------------------------------------------------------------------------
196
+
197
+ |
198
+
199
+ | Many applications store files both locally and in the cloud. For this
200
+
201
+ | reason, you may specify a default "cloud" driver here. This driver
202
+
203
+ | will be bound as the Cloud disk implementation in the container.
204
+
205
+ |
206
+
207
+ */
208
+
209
+
210
+
211
+ 'cloud' => 's3',
212
+
213
+
214
+
215
+ /*
216
+
217
+ |--------------------------------------------------------------------------
218
+
219
+ | Filesystem Disks
220
+
221
+ |--------------------------------------------------------------------------
222
+
223
+ |
224
+
225
+ | Here you may configure as many filesystem "disks" as you wish, and you
226
+
227
+ | may even configure multiple disks of the same driver. Defaults have
228
+
229
+ | been setup for each driver as an example of the required options.
230
+
231
+ |
232
+
233
+ | Supported Drivers: "local", "ftp", "s3", "rackspace"
234
+
235
+ |
236
+
237
+ */
238
+
239
+
240
+
241
+ 'disks' => [
242
+
243
+
244
+
245
+ 'local' => [
246
+
247
+ 'driver' => 'local',
248
+
249
+ 'root' => storage_path('app'),
250
+
251
+ ],
252
+
253
+
254
+
255
+ 'public' => [
256
+
257
+ 'driver' => 'local',
258
+
259
+ 'root' => storage_path('app/public'),
260
+
261
+ 'visibility' => 'public',
262
+
263
+ ],
264
+
265
+
266
+
267
+ 's3' => [
268
+
269
+ 'driver' => 's3',
270
+
271
+ 'key' => 'your-key',
272
+
273
+ 'secret' => 'your-secret',
274
+
275
+ 'region' => 'your-region',
276
+
277
+ 'bucket' => 'your-bucket',
278
+
279
+ ],
280
+
281
+
282
+
283
+ ],
284
+
285
+
286
+
287
+ ];
288
+
289
+ ```