First, you will need to install the adapter:
composer require gaufrette/doctrine-dbal-adapter
In order to use the adapter, you will need to prepare the table with the following columns:
| Columns |
|---|
| key |
| content |
| mtime |
| checksum |
Doctrine adapter takes three arguments:
<?php
use Gaufrette\Adapter\DoctrineDbal as DbalAdapter;
use Gaufrette\Filesystem;
$connection = DriverManager::getConnection($params);
$adapter = new DbalAdapter($connection, 'files');
$filesystem = new Filesystem($adapter);
How can I help you explore Laravel packages today?