Back

clean as fuck.

image

5

782

  • No matching results...
  • Searching...

/ 1000

Poll Options

Is there a tutorial or guide on this actions pattern in laravel we may consult?

85

What is your usual approach when you pass validated data into an action? Do you revalidate the data in the action or is there an implicit contract/assumption that the data is validated by the caller?

86

i prefer passing DTO to execute

1

128

I prefer using DTO's solely for third party payloads/DTO's instead of for internal data transfering. However, argumentative; Spatie's Data package (spatie/laravel-data) has some cool features like transforming those DTO's to typescript 👀

81

Make it invokable so that it's $action($request->validated()); ? (without ->execute)

1

114