Skip to content

Instantly share code, notes, and snippets.

@srph
Created August 30, 2014 06:50
Show Gist options
  • Save srph/f42e57c45173e4e8f11d to your computer and use it in GitHub Desktop.
Save srph/f42e57c45173e4e8f11d to your computer and use it in GitHub Desktop.
my-better-yet-qcs
Controller:
// calls repository
// repository calls its abstract parent
// abstract parent calls query / command
// has validabletrait (which valides itself with the given rules)
// abstract parent calls transformer
// return
// repository does it the eloquent way or mongo or whatever way
// repository returns transformed data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment