sidneycosta.hashnode.dev🔍 Laravel devs, be careful when using count() with groupBy!If you’re working with queries that include groupBy and having, you should know that the ->count() method can return incorrect results. 😬 That’s because count() ignores the grouping and having filters when building the final query. ❌ Incorrect usage...Aug 3, 2025·1 min read
sidneycosta.hashnode.devEnhance Laravel code with SOLID Principles - Part 2 (OCP)The first post in the SOLID with Laravel series discussed SRP (Single Responsibility Principle). Now, let's explore the second principle, the Open/Closed Principle (OCP). Open/Closed Principle states that software entities (classes, modules, function...May 19, 2024·3 min read
sidneycosta.hashnode.devEnhance Laravel code with SOLID Principles - Part 1The SOLID principles are key to developing sustainable and scalable applications. In Laravel, these principles help create robust and efficient codebases. This post explores applying one SOLID principle to a Laravel project.Though technical, SOLID pr...May 17, 2024·5 min read