●Artisan Weekly
IssueNº 106
Dated16 Oct 2026
Subscribers96
← All Topics
Tagged

Clean Code

Links
6 links featured
  • Blog Post elishaukpongson.medium.com

    Open/Closed Principle in Practice: The Strategy + Resolver Pattern in Laravel

    Have you ever done a big refactor and thought great this code is great, only to come back to it a week later and ask yourself what would happen if we added a third thing to this what impact would that mean what would need to change. Well Elisha did just that and thanks to this post you can find out more about the open/closed part of the solid principle.

  • Blog Post wendelladriel.com

    Using the ADR (Action/Domain/Responder) Pattern in Laravel

    Learn how to implement the Action/Domain/Responder pattern in Laravel to keep controllers thin, business logic reusable, and response handling separate. This architectural approach helps manage growing Laravel applications by clearly separating HTTP concerns from business rules and response formatting.

  • Blog Post daryllegion.com

    Validating Array Inputs in Laravel Without the N+1

    Have you ever had to validate a request that has a large array of inputs that you don't necessarily know how many there might be? Daryl shows a neat trick to use some of the established Form Request methods to allow you to stop the dreaded N+1 when you have to validate in this exact scenario.

  • Blog Post developer.vonage.com

    If You Can't Read Your PHP Code, Neither Can Your LLM

    A practical guide to using PHP's Readalizer library to make your code more readable for both humans and AI tools. The article demonstrates how implementing code readability rules can improve AI-assisted development by ensuring consistent, understandable codebases.

  • Blog Post tnakov.dev

    The God Object That Knew Too Much: Refactoring a 478-Line Class Into Clean Architecture

    We've all been there right? Built a small class that does something, then over time it just grows and grows and grows and before you know it you have this crazy big God Object Class thats just doing too much. In this post Trajche details how to refactor a massive 478-line Laravel class that violated the Single Responsibility Principle by handling status calculation, authorisation, PDF generation, and more. Learn how to identify God Objects in your codebase and break them down into clean, maintainable architecture using real-world examples from a compliance platform.

  • Blog Post freek.dev

    A clean API for reading PHP attributes

    Freek introduces spatie/php-attribute-reader, a package that dramatically simplifies reading PHP 8.0 attributes by turning verbose reflection boilerplate into clean one-liners. The package provides intuitive methods for reading attributes from classes, methods, properties, and parameters, making attribute handling much more developer-friendly.