#Architecture

Articles tagged Architecture

All blog articles tagged Architecture.

Domain Events vs Eloquent Events in Laravel

Eloquent's created, updated, and saved events tell us that a row changed. They do not tell the application why it changed. A subscription renewal can exten...

7 min read

CQRS-Lite in Laravel: Separate Read and Write Models Without the Tax

At its useful core, CQRS is one rule: a write protects business rules and changes state; a read returns the shape a caller needs. Laravel already allows th...

9 min read

Background Work as Architecture: Laravel Jobs and Eventual Consistency

A queue does more than speed up an HTTP response. It introduces an asynchronous boundary: the request can say that an invoice is being prepared while the P...

10 min read

Actions, DTOs and Value Objects: Laravel's Pragmatic Middle

A Laravel application rarely becomes hard to change because one controller has a dramatic bug. It becomes hard to change because a business rule gradually...

9 min read

Strategy Pattern in Laravel: Flexible B2B Pricing

A match statement is often the right way to start. One customer type, two discounts, a rule that fits on a screen: there is no prize for introducing five c...

9 min read

State Pattern in Laravel: A Subscription Lifecycle Without a Package

$subscription->status === 'active' is harmless once. It becomes expensive when a cancellation endpoint, renewal job, payment webhook and support tool al...

8 min read

Need someone to take responsibility for the next step?

Let’s talk about your project and define a scope that actually makes sense for your goals.