An Introduction To Laravel's FileSystem

Submitted by phpScots - 2 months ago

Laravel uses Frank de Jonge PHP Package For managing Filesystem.Laravel provides simple drivers to manage local filesystem, Amazon S3, and Rackspace Cloud Storage.You can easily switch between these filesystems with no change in API's. Read More From http://www.laravelinterviewquestions.com/2017/06/reading-writing-and-deleting-file-from.html

//Writing a file from Local Disk
Storage::disk('local')->put('file.txt', 'Contents');
//Reading a file from Local Disk
$contents = Storage::get('file.jpg');

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks