PHP Classes

File: vendor/league/flysystem/docs/adapter/gridfs.md

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/league/flysystem/docs/adapter/gridfs.md   Download  
File: vendor/league/flysystem/docs/adapter/gridfs.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 436 bytes
 

Contents

Class file image Download

layout: default permalink: /adapter/gridfs/ title: GridFS Adapter

GridFS Adapter

Installation

composer require league/flysystem-gridfs

Usage

use League\Flysystem\GridFS\GridFSAdapter;
use League\Flysystem\Filesystem;

$mongoClient = new MongoClient();
$gridFs = $mongoClient->selectDB('db_name')->getGridFS();

$adapter = new GridFSAdapter($gridFs);
$filesystem = new Filesystem($adapter);