Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Laravel+GraphQL 良かったこと 困ったこと 悲しかったこと

Laravel+GraphQL 良かったこと 困ったこと 悲しかったこと

ゆうきゃん

May 22, 2019
Tweet

More Decks by ゆうきゃん

Other Decks in Programming

Transcript

  1. ࣗݾ঺հ • Name: Ώ͏͖ΌΜ(@ucan_lab) • Company: גࣜձࣾROLO • Skill: PHPer(5೥)/Laravel/GraphQL/Docker(ษڧத)

    • Favorite: λϐΦΧ/εϚϒϥSP • Twitter: https://twitter.com/ucan_lab • Qiita: https://qiita.com/ucan-lab • Laravelͷ։ൃ؀ڥΛDockerΛ࢖ͬͯߏங͢Δ • Laravel PHP InsightsΛ࢖ͬͯίʔυ඼࣭Λ෼ੳ͢Δ
  2. LaravelΞʔΩςΫνϟ Client I/O Application Domain Data Source 3%# ,74 Route

    Request Middleware Controller Model Repository Resource UseCase Response "1*
  3. ֤ϨΠϠʔͷ໾ׂ Input Application Domain Output Route Request Middleware Controller Model

    Repository Resource UseCase Response 63-ͱίϯτϩʔϥͷϚοϐϯά ύϥϝʔλͷܗࣜόϦσʔγϣϯɺॏෳνΣοΫ౳ͷ%#ΞΫηε͸͠ͳ͍ ೝՄɺ$43'νΣοΫɺ$034ઃఆɺڞ௨ϩΪϯάॲཧɺڞ௨ྫ֎ॲཧ ϦΫΤετड෇ɺϢʔεέʔεݺग़ɺϨεϙϯεฦ٫ɺϩδοΫ͸هࡌ͠ͳ͍ ॏෳνΣοΫ౳ͷόϦσʔγϣϯɺϏδωεϩδοΫ࣮૷ɺτϥϯβΫγϣϯॲཧ ෳࡶͳ42-ͷ૊ΈཱͯɺඞཁʹԠͯ͡ΩϟογϯάॲཧɺϞσϧͷݺͼग़͠ &MPRVFOU03.ɺίʔυϚελ &OVN "1*ͷϦιʔε &MPRVFOUͱ+40/ϨεϙϯεͱͷτϥϯεϨʔγϣϯ૚ "1*ͷ+40/ϨεϙϯεΛฦ٫
  4. LaravelʴGraphQLͷϨΠϠʔͷ໾ׂ Input Application Domain Output Route Request Middleware Controller Model

    Repository Resource UseCase Response 2VFSZ .VUBUJPOͷ໊લ͕ϧʔςΟϯάͱஔ͖׵ΘΔ 2VFSZ .VUBUJPOͷҾ਺Ͱ5ZQFࢦఆɺ ϛυϧ΢ΣΞ͸ͦͷ··ར༻ ࢖༻͠ͳ͍ɻ2VFSZ .VUBUJPOͷSFTPMWFS͔ΒϢʔεέʔεΛݺग़ ͜͜ʹϏδωεϩδοΫΛ࣮૷͢Δ ϦϙδτϦ͸ͦͷ··࢖༻ Ϟσϧ͸ͦͷ··࢖༻ ࢖༻͠ͳ͍ɻΫϥΠΞϯτଆͰ5ZQF͔ΒඞཁͳϑΟʔϧυΛऔಘ "1*ͷϨεϙϯεΛฦ٫
  5. LaravelΞʔΩςΫνϟ Client I/O Application Domain Data Source 3%# ,74 Route

    Request Middleware Controller Model Repository Resource UseCase Response "1* (SBQI2-
  6. ྑ͔ͬͨ͜ͱ • APIυΩϡϝϯτ͕ࣗಈੜ੒͞ΕΔ • ࣮ߦ؀ڥ(GraphQL Playground)͕༏ल • ϧʔςΟϯάઃܭ͕ෆཁ • Ϟσϧͱͷ਌࿨ੑ(ϓϩύςΟɺϦϨʔγϣϯ)

    • Laravel dump-server ͱҰॹʹ࢖͏ͱ։ൃָ͕ • ॳΊͯͷਓ΋εϜʔζʹೖΕͨ • ଞͷϓϩδΣΫτͰ΋࢖͏ଆ͸ಉ͡ίʔυ͕࢖͑Δ
  7. ׬