Creating a "what's hot" Reddit algorithm with Laravel cover image

January 9, 2022

Creating a "what's hot" Reddit algorithm with Laravel

This is a small guide on how to implement a Reddit-style "what's hot" algorithm with Laravel Frameowrk. There are two primary benefits to using a "what's hot" algorithm. It gives newer posts a chance. The problem with many "most popular" pages is that...

Read

Subscribe to my newsletter

April 3, 2026

AI Won't Replace Programmers. It Will Replace Those Who Never Learned to Be One

I've been hearing the exact same thing for weeks now. On Twitter, on LinkedIn, in conversations with friends who don't even code. "Learning to program is pointless now." "Anything can be built...

Read

April 3, 2026

Your Laravel Controllers Are Doing Too Much. Fix Them With Services

If you've ever scrolled through a Laravel controller method that stretches past 150 lines, you already know something went wrong. That store() method started innocent enough: a couple of...

Read

July 6, 2025

How to Use Bootable Traits in Laravel

Bootable traits are the stealth feature that lets you share event‑driven behavior across Eloquent models without littering every class with boot methods or external observers. Any...

Read

July 5, 2025

Server-Side Geolocation Filtering in Laravel with the Haversine Formula

Distance-aware queries are a core feature for modern apps—whether you're matching riders and drivers, showing events around a user, or surfacing the nearest warehouses for same-day delivery. The...

Read

July 5, 2025

How to Stream Large File Uploads to AWS S3 in Laravel

Handling multi‑gigabyte uploads in a stateless app is painful: TCP throughput caps slow single‑request uploads, server disks fill, and Lambda containers vanish between requests. Modern teams...

Read

March 17, 2024

Discovering Laravel Latest Eloquent Methods: whereAll & whereAny

In the ever-evolving world of web development, Laravel continues to introduce features that simplify and enhance the coding experience. The recent Laravel 10.47 update has brought us two innovative...

Read