G
G
Glory2021-02-04 16:07:06
Laravel
Glory, 2021-02-04 16:07:06

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 question

Ask a Question

731 491 924 answers to any question