Laravel Custom Query Builders Over Scopes
November 18, 2024Laravel scopes make queries much more readable, but they come with a lot of magic. Custom Query Builders fix this issue, let me show you how to use them.
Laravel scopes make queries much more readable, but they come with a lot of magic. Custom Query Builders fix this issue, let me show you how to use them.
One way to extend Laravel with custom methods is through macros and mixins. Let me show you how!
Laravel comes with tons of features, but sometimes, you just need to extend it a little bit. I will show you how!
Have you ever wondered how Laravel switches between different drivers' implementations? Well, hang tight, we will learn how!
Laravel relies heavily on Facades. Some might think they are anti-patterns, but I believe that if they are used correctly, they can result in clean and testable code. Let's see how.
Building console applications can be a lot of fun, but also quite challenging. However, Laravel Zero makes it incredibly easy and way more enjoyable!
How often have you heard "Code to an interface"? I'm sure, at least a few times, and I know it can be hard to understand at first. I've been there, so let's see what it means.
Whenever we encounter an N+1, we usually resort to Eager Loading. As much as it seems like the appropriate solution, it can be the opposite..
Laravel offers an elegant method-calling feature called Facades. At first glance, they resemble static methods, but well, they are not! What kind of magic is Laravel doing?
Not once, not twice have we faced the infamous 'Token Mismatch' exception in Laravel. But hey, the poor guy is just looking out for you, trying to shield you from the evil 😈, let's have a look..
PHP 8 has introduced attributes, which are quite impressive and powerful, in this article will use them to toggle Laravel routes on and off, how cool is that?
If you feel like you are doing the same things over and over again, it's time to automate, and this article is all about how to do it!
Integrate Laravel Pint with VS Code using 2 methods, Extensions and Tasks, to ensure a consistent code style.
Looking to add real-time notifications to your Laravel application, but without WebSockets and Long Polling? This article has got you covered!
Hello! you'll find my solutions to the Bandit challenges with an explanation, hopefully, this helps you if you're struggling.