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.
I want to create storage folder in workbenche (vendor/package). And then I want to get/set it.
Pl example for me.
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 !
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community