I have set up an S3 bucket and created an IAM user with full S3 access permission, and ran composer require league/flysystem-aws-s3-v3. I have also have configured the following in .env: The problem is that I can’t interact with S3 at all from my controller. I’ve tried sending files to S3: I have also manually uploaded an image to S3,
Tag: flysystem
How to output array with new line separated values using Laravel Storage:put
How to output an each array element in a new line with Laravel Storage:put? I have an array like below that I want to put into a file, array_test.txt, where each element goes on a new line. Using Laravel’s Storage, it goes like Storage:put($fileName, $arrTest); However the output is on a single line. Storage as an $options tag, but that
How to get file URL using Storage facade in laravel 5?
I’ve been experimenting using the new Flysystem integration with Laravel 5. I am storing ‘localised’ paths to the DB, and getting the Storage facade to complete the path. For example I store screenshots/1.jpg and using or I can retrieve the same file on different disks. get retrieves the file contents, but I am hoping to use it in my views