laravel-dcache maintained by biigle
Author
Last update
2025/12/11 09:10
(dev-main)
License
Downloads
6
Tags
Laravel dCache
A dCache filesystem driver for Laravel.
Installation
composer require biigle/laravel-dcache
Usage
Add the new entries to your .env
DCACHE_BASEURL=""
DCACHE_USERNAME=
DCACHE_PASSWORD=
# or as alternative to username and password a bearer token:
DCACHE_TOKEN=
# Optional
DCACHE_PROXY=
DCACHE_PATHPREFIX=""
DCACHE_AUTHTYPE=
DCACHE_ENCODING=
Add the new entries to the config
config/filesystems.php
'disks' => [
...
'dcache' => [
'driver' => 'dcache',
'baseUri' => env("DCACHE_BASEURL"),
'userName' => env("DCACHE_USERNAME"),
'password' => env("DCACHE_PASSWORD"),
'pathPrefix' => env("DCACHE_PATHPREFIX", ''),
// Alternative to userName and password
'token' => env("DCACHE_TOKEN"),
// Optional prameters
// 'proxy' => env("DCACHE_PROXY", 'locahost:8888'),
// 'authType' => env("DCACHE_AUTHTYPE", null),
// 'encoding' => env("DCACHE_ENCODING", null),
],
...
];
After adding the config entry you can use it in your storage driver.
Storage::disk('dcache')->files('...')
Config
The driver uses the WebDAV driver under the hood. See biigle/laravel-webdav for the available config options.