0

enter image description here

I'm searching for this syntax but I cannot find any explanation... I found some examples but everyone is using the method storeAs(), store() or move() straight away.

I can't understand what $file_contents is. What is this for? What shall it contain?

4

1 回答 1

0

Put 用于将内容存储在文件中。因此$file_content,作为您要存储的数据'filename'

https://laravel.com/docs/5.6/filesystem#storing-files

这将类似于 file_put_contents。

于 2018-07-08T14:01:11.500 回答