Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johnf's avatar

Lumen Storage

Hey guys, Storage is available on Lumen?

0 likes
20 replies
johnf's avatar

Oh Great! So, in Laravel we have the config folder, instead in Lumen all configuration are in ENV file. How I have to conf the .env file? For example, atm I just comment out the FILESYSTEM_DRIVER=local Is it correct?

johnf's avatar

Addendum: my code is

    Log::info( 'before get storage' );

    // Get disk
    $disk = Storage::disk( 'local' );

    Log::info( 'after get storage' );

I found only the first log on lumen.log...

opheliadesign's avatar

I could swear that the Lumen documentation used to have instructions for setting up local and cloud file storage, sometime after 5.1 released it just disappeared. I set up S3 on my 5.0 app and I know I did not do it without reading docs. What's the deal?

johnf's avatar

@opheliadesign: ok but the deal is that doesn't work for me the FILESYSTEM_DRIVER=local and on the currently Lumen documentation I cannot found any Storage information. Do I miss something?

kfirba's avatar

@johnf first, if you want to use facades then enable it in bootstrap/app.php.

I believe the keys for Lumen for the configu are exactly the same for Laravel. Check Lumen's src/config directory to see all config files.

2 likes
opheliadesign's avatar

I'm just wondering what happened to the documentation. Was storage in Lumen deprecated or something? Maybe just overlooked?

johnf's avatar

@kfirba Yep, my facade is comment out $app->withFacades(); and in src/config I have:

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root'   => storage_path('app'),
        ],

exactly as my other Laravel app... but something goes wrong... :(

1 like
kfirba's avatar
kfirba
Best Answer
Level 50

@johnf Okay, I just took a look at that and it seems like Lumen doesn't require the flysystem package so we have to manually pull it:

composer require "league/flysystem: ~1.0"

Done.

6 likes
johnf's avatar

@kfirba Wow!! Awesome!! Seems works now!! Thank you so much!! :+1:

1 like
hogaso's avatar

Discussion topics that have part of the series to get data among the podcast to take data with the replies to make. I need to take data more on this so I read ukwritings.com review share by the other member of the blog or they have more information among the ports.

Please or to participate in this conversation.