Using S3
Various tips for working with S3 storage from your Laravel application
See also;
Livewire File Uploads Using S3Content in folders
Segregate your S3 content according to your environment. Adding the following to config/filesystems.php
In the above, PDF files will be stored for public consumption within a disk prefixed with the environment name. The key to this is the root
attribute. This provides a path to prefix to all files that are created in the pdfs disk.
Write files to the pdf folder after specifying the disk;
The ->url()
command can be used to get the public url for the created file;
Be sure to have different app names between Dev, Staging and Live to separate your output.
Last updated