For years, the hardest part of being a developer was typing. You d stare at a blank file, load the problem into your head, and grind out a solution one line at a time. That labor was the product. It was also the constraint. How much you shipped came down......
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 Eloquent calls, maybe a validation check. Six months......
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 with AI." "We re done as programmers." And honestly, I......
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 trait that adds a static bootTraitName() hook......
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 fastest, most accurate way to deliver those results is to......
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 therefore push the heavy bits straight from the browser to......
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 Eloquent methods that streamline database queries,......
Recently at my job, we encountered a feature that queues the reset password email, and I decided to create this post to demonstrate how easy it is to implement this and, at the same time, customize the content of the notification itself. Laravel comes......
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......
Previously in Laravel when you wanted to get a relation and include an extra complex condition you had to do it with the whereHas method in the following way: Recently DarkGhostHunter has made a PR in Laravel 8.57.0 version where it is......
Let s do some piggybacking on our code from Tip #1. Note how we fetch the User model for a given participant in the average function. This is highly problematic, because we re doing an additional SQL query "behind the scenes" by loading many users......
How you can avoid loops by using collections. It sounds great from the beginning but you need to practice it in order to be able to use it in your own projects.. Imagine you are developing a web site in which users participate in threads and are ranked......