mongodb / laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
https://www.mongodb.com/compatibility/mongodb-laravel-integration
MIT License
7k stars 1.42k forks source link

PHPORM-186 GridFS adapter for Filesystem #2985

Closed GromNaN closed 4 months ago

GromNaN commented 4 months ago

Fix PHPORM-186

Integration of Flysystem GridFS Adapter for Laravel File Storage.

The configuration is similar to the Symfony Flysystem Bundle as it provides various way to configure the bucket:

Unlike the Symfony Bundle, I do not provide instantiation of a new MongoDB\Client from the configuration as we always have a database connection with Eloquent.

Checklist

GromNaN commented 4 months ago

LGTM with some comments!

I applied your suggested changes in a new PR: https://github.com/mongodb/laravel-mongodb/pull/2993