10,000회 다운로드

작성자

카테고리:

← 피드로
DEV Community · Alberto Arena · 2026-07-19 개발(SW)

Alberto Arena

laravel-event-sourcing-generator

I built it to solve a specific friction point: setting up a Spatie event-sourcing domain meant writing a lot of the same files every time — aggregates, events, projectors, reactors, read models. The generator takes a migration or a quick description of your model and scaffolds all of it in one artisan command. It’s not a framework addition, just a time-saver.

composer require --dev albertoarena/laravel-event-sourcing-generator
php artisan event-sourcing:generate Post

Enter fullscreen mode Exit fullscreen mode

10k is more than I expected when I published it. The package has a narrow focus and a niche audience — Laravel developers who’ve already bought into event sourcing — so seeing it spread this far is genuinely surprising.

The project didn’t stop at the generator. Earlier this year I built a Claude Code skill (write-up) that adds a design conversation before the code generation, so you work through the domain boundaries before anything gets written. More recently, the filament-event-sourcing plugin (write-up) closes the gap between Filament’s admin panel and your aggregates. The generator is still the foundation, but these fill in the parts it was never meant to handle.

Thanks to everyone who’s used it, filed issues, or left feedback. The package is still actively maintained and the best place for questions is the GitHub issues.

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다