Back
Advanced
Plus
Clean Architecture in a Corporate Laravel Environment
This course continues the learning Laravel/Filament reference data system and moves it into Clean Architecture without religious overengineering. You will study why business rules should not live in a controller, Filament resource, Eloquent model, or console command, and you will learn how to design scenarios around actors: creating nomenclature through the admin panel, through API, and through document import. The main idea of the course is loose coupling from concrete implementations. Laravel, Filament, Eloquent, a queue, a database, and the import format are important, but they should remain external details. Inside there should be use cases, commands, queries, handlers, domain rules, contracts, and adapters. That is why the course separately covers CQRS, the Dependency Rule, actor-specific use cases, ports/adapters, mappers, transaction boundaries, layer testing, and deptrac/deptrac as an automatic architecture guard. The course uses a practical car body analogy: the front and rear parts of a car crumple on impact to protect the cabin and the people inside. In an application, Presentation and Infrastructure play a similar role: they absorb the impact of change so that Application and Domain remain stable. By the end of the course, you will have a clear Clean Architecture structure in src, several actor-specific nomenclature scenarios, command/query side separation, infrastructure adapters, presentation adapters for HTTP, Filament and Console, a Deptrac ruleset, and a final architecture defense of the solution.
Laravel
DDD-lite
Testing
Make
Architecture Guards
Clean Architecture
Corporate Laravel
Filament
Eloquent
CQRS
Ports and Adapters
Deptrac
Application Layer
Domain Layer
Infrastructure Layer
Presentation Layer