Laravel and AWS Cloudfront
<p>I was researching and read a lot of articles on one specific topic but couldn't find relevant answers anywhere.</p>

<p>However I'm doing some things as a fun/private project in Laravel and I wanted to use Amazon S3 storage. I have everything set up, and it's working, I'm able to upload images to S3 from my application using Laravel Filesystem, but what I'm trying to do is use CloudFront (I have this set up and working too, the cloudfront is serving files properly) for serving images and files.</p>

<p>Now my question is: How to integrate AWS CloudFront "urls" into Laravel? I mean how to store CloudFront urls inside a Laravel application? How do I retrieve file urls (ie images) so I can display it inside my application. Do I store just file paths in a database and use "some specific way" to serve the full url or do I save the full AWS CloudFront urls in a database?</p>

<p>How does this works at all? Sorry if the question is stupid, but I just dived into Laravel and I'm pretty new there.</p>