I am trying to build an CLI App with the help of Laravel Zero.
I can globally call the "executable" (Artisan) of my app. I need to work with the files on the current working directory.
Now I want to use the Storage Facade / FileSystem.
How do I configure Laravel Zero so that I can add a custom disk like:
Storage::disk('cwd')->files(....);
I tried to use the config file "app.php" inside the config dir. (Since there are no other config files...)
'filesystems' => [
'default' => [
'driver' => 'local',
'root' => getcwd()
]
],
or
'filesystem' => [
'disks' => [
'cwd' => [
'driver' => 'local',
'root' => getcwd(),
],
],
'default' => [
'driver' => 'local',
'root' => getcwd()
]
],
When I run the executable from a directory which I want to use as my "root", I get an
InvalidArgumentException : Driver [] is not supported.
My enviroment: Windows 10 with PHP7.2
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FPa9NN
via IFTTT
Aucun commentaire:
Enregistrer un commentaire