Pattern: Action-Domain-Responder (ADR)

By @ryan · 2021-10-17 23:03

Pattern: Action-Domain-Responder (ADR)

  • By @devcircus · 2021-10-28 02:12

    Really love the structure and clarity that ADR brings to a Laravel app. I used it on many projects until I switched to Livewire. I'm actually trying to work out an ADR-like structure for Livewire. Really just trying to work out ANY kind of consistent structure with Livewire as my components tend to be radically different from each other.

    • By @ryan · 2021-10-28 08:03

      When it comes to Livewire, I tend to follow the same structure as my controllers in term of naming and location (when possible).

      Alongside that, I'll use consistent method names for things like save(), update(), submit() etc.