Recently I was working on a new project, where I had to stream stock data and display it on a chart. My first instinct was to setup a loop using setTimeout, but I quickly realized that wouldn’t work for my exact needs. Stock prices change so frequently, often happening several times a second. Doing an ajax call every second seemed like the worst overhead baggage I could possibly program myself into. After doing a bit of research, I stumbled upon Server-Sent Events. [Read more…] about Server Sent Events using Laravel and Vue
50 Laravel Tricks in 50 Minutes
Yitzchok Willroth gave a great talk about at PHP World this year about all the little awesome features in Laravel. I would highly recommend going through all of them and discovering some of the goodies yourself.
Upload Files to AWS S3 using Laravel
Update: Freek Van der Herten has an updated version of this tutorial, which is better on memorey and supports larger file uploads.
Uploading to Amazon S3 can be a great way to keep your files loading quickly with their CDN, and allow you to work more on your code, rather than your filesystem.
Laravel 5’s new FileSystem makes this easy, but lacks a lot of documentation for how to actually accomplish this. First thing we need to do is tell our controller class to use the Filesystem contract and the Request class. [Read more…] about Upload Files to AWS S3 using Laravel