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?
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?
Put 用于将内容存储在文件中。因此$file_content,作为您要存储的数据'filename'。
https://laravel.com/docs/5.6/filesystem#storing-files
这将类似于 file_put_contents。