D
D
Donald_Duck2018-06-03 14:22:23
Laravel
Donald_Duck, 2018-06-03 14:22:23

Will there be any difference in giving the file to the user between these lines of code?

The variant used in the documentation

return response()->download(Storage::disk('my_files')->path($file->path), $file->name);

Variant I came up with
return Storage::disk('my_files')->download($file->path, $file->name);

Will there be any fundamental difference between these lines or any pitfalls when uploading a file?

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