Support the ongoing development of Laravel.io →
Configuration Input Views
Last updated 2 years ago.
0

If you're using windows, right-click and choose new folder. Linux: mkdir =)). I remember Taylor's saying in his book From Apprentice to Artisan: "Don't fear the directory". Funny.

Anw, if you want to manage your directory in your app, just using Filesystem and access the directory via its path. That's will be fine. Otherwise, if you want to treat it as the config directory, in your ServiceProvider::boot(), using Config::set() and require_once() to add the configuration value. That's all.

Last updated 2 years ago.
0

I want to create storage folder in workbenche (vendor/package). And then I want to get/set it. Pl example for me.

Last updated 2 years ago.
0
Solution

It is not recommended to use a custom directory for your packages' storage needs as you will generaly not have provided write access to that directory.

Prefer app/storage/packageName/* as your directory for best !

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

yuomtheara yuomtheara Joined 12 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.