diaglyph's avatar

Lumen and Filesystem - Driver [] is not supported

I'm using Lumen to make an API and I need to read/write files within the Storage folder. I've set up special "disks" for this purpose. I have a results folder linked to the "results" disk etc (within the config). If I do a simple \Storage::disk('results')->get('filename.csv') it gives me the Driver [] is not supported error. In bootstrap/app.php I have:

$app->configure('filesystems');
$app->register(Illuminate\Filesystem\FilesystemServiceProvider::class);

What else do I need to do to make sure I can use get/put or readStream/writeStream?

0 likes
3 replies
aurawindsurfing's avatar

Last time I saw this error was when Storage facade was not imported correctly at the top of the file.

Make sure that works.

diaglyph's avatar

What do you mean by that? What do I have to do? I can't seem to find anything about this

diaglyph's avatar

Ok disregard this, just my silliness in misnaming a disk

1 like

Please or to participate in this conversation.