freelance-example icon indicating copy to clipboard operation
freelance-example copied to clipboard

Laravel example app with domain layer(Doctrine) and CQRS pattern

Basic example of CQRS with Laravel

Build Scrutinizer

Write model: extracted Domain layer with Doctrine

Read model: simple Eloquent

Known issues

  • Project is too small to show the advantages of these patterns
  • Read and write entity & controller classes have the same names(not a big problem, they will never be used in same place)