Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Randy_Johnson's avatar

Event-Driven Architecture, do I need it?

So am progressing with the website with the help of AI, and its telling me I should implement event driven architecture for my stock/ items page.

Reading through it, it looks pretty complicated. Here is a snippet of code.

app(AdjustInventoryStockAction::class)->execute(
    item: $item,
    newQuantity: $validated['quantity'],
    type: 'adjustment',
    reason: 'Manual inventory update',
    performedBy: Auth::id(),
);

Should I bite the nail and continue down this road since it will eventually lead to a better product, or is AI leading me on a wild goose chance?

0 likes
1 reply
Tray2's avatar

I think you should learn how to code, and then use AI as a tool, and not as a developer.

Please or to participate in this conversation.