Answer the question
In order to leave comments, you need to log in
Why does the code executed through the command see other file paths?
I ran into a problem that when I create a command and execute it through artisan, the paths for saving files need to be specified differently than when calling a method through api that does the same thing.
How to avoid it?
For example, to save a file downloaded from a third-party site, you need to specify the storage/..... path,
and when using the atrisan command, you must also specify public ..
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question