File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ to use the ``gridfs`` driver in ``config/filesystems.php``:
39
39
'gridfs' => [
40
40
'driver' => 'gridfs',
41
41
'connection' => 'mongodb',
42
+ // 'database' => null,
43
+ // 'bucket' => 'fs',
44
+ // 'prefix' => '',
45
+ // 'read-only' => false,
46
+ // 'throw' => false,
42
47
],
43
48
],
44
49
@@ -80,8 +85,8 @@ In this case, the options ``connection`` and ``database`` are ignored:
80
85
81
86
.. code-block:: php
82
87
83
- use Illuminate\Foundation\Application;
84
- use MongoDB\GridFS\Bucket;
88
+ use Illuminate\Foundation\Application;
89
+ use MongoDB\GridFS\Bucket;
85
90
86
91
'disks' => [
87
92
'gridfs' => [
@@ -121,8 +126,8 @@ in the Laravel documentation.
121
126
Versioning
122
127
----------
123
128
124
- In GridFS, file names are metadata in file documents identified by unique
125
- MongoDB ObjectID . If multiple documents share the same file name, they are
129
+ File names in GridFS are metadata in file documents, which are identified by
130
+ unique ObjectIDs . If multiple documents share the same file name, they are
126
131
considered "revisions" and further distinguished by creation timestamps.
127
132
128
133
The Laravel MongoDB integration uses the GridFS Flysystem adapter. It interacts
You can’t perform that action at this time.
0 commit comments