Storage::put vs Storage::putFile*

Posted 8 months ago by CDNxL

What is the practical difference between these methods?

Docs said that put() store raw file contents on a disk (like file_put_contents?), and putFile() - putFileAs() will manage automatically the streams.

Using streams is greatly recommended when dealing with large files.

I don't know what "Automatic Streaming" means.


Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.