Laravel の効率的な学び方

Laravel の効率的な学び方

Innocafe #21 での発表資料です。

http://innocafe.connpass.com/event/32137/

66a86be239fea2303d0801990cdc13c7?s=128

localdisk

June 17, 2016
Tweet

Transcript

  1. Laravelͷޮ཰తͳֶͼํ Innocafe #21 @localdisk

  2. ࣗݾ঺հ দඌେ ·͓ͭ·͞Δ EEE ΤϯδχΞ Πϊϕʔλʔδϟύϯॴଐ ΤϯδχΞɾσβ ΠφɾσΟϨΫλΛืूத  Laravel

    3͔Βͷݹࢀ Ϣʔβʔ ޷ධൃചத @localdisk
  3. -BSBWFMͷಛ௃ w ଟػೳ w جຊతͳMVC+ServiceContainer, Event, Queueʜ w มԽ͕ܹ͍͠ w

    ݱࡏ w ͷϦϦʔε͸ มԽΛ೺Ѳ͢Δʹ͸ޮ཰తʹֶͿඞཁ͕͋Δ
  4. ͦͷ·͑ʹ

  5. ޮ཰తʹֶͿ४උΛ͠Α͏ w IDE࢖͓͏ • PhpStorm/NetBeans w ΫϥεɺϑΝΠϧɺγϯϘϧΛ։͘ w ఆٛઌʹඈͿɺ࢖༻͞Ε͍ͯΔՕॴʹඈͿ w

    ࣗ৴ͷ͋Δਓ͸IDE͡Όͳͯ͘΋OK
  6. ֶͿαΠΫϧ lಡΉz lࢼ͢ ॻ͘ ಈ͔͢ z

  7. ಡΉ

  8. ίΞΛಡΉ w Illuminate\Container\Container w ͍ΘΏΔαʔϏείϯςφ w ࡶʹݴ͑͹lͰ͔͍഑ྻz w Illuminate\Foundation\Application w

    αʔϏείϯςφΛܧঝɻΞϓϦέʔγϣϯͷॳظॲཧ w ศརϝιου΋͋Δ w Illuminate\Foundation\Application\Http\Kernel w App\Http\Kernel ΋߹Θͤͯ w ͜͜Β΁Μ·ͰಡΊ͹͍͍ͩͨΘ͔Δ
  9. ServiceProvider/FacadeΛಡΉ w Illuminate\Hashing\HashServiceProvider w Ұ൪୯७ɻॳΊͯಡΉͷʹ࠷ద w Illuminate\Support\Facade w ഑ྻ͔ΒऔΓग़͍ͯ͠Δ͚ͩ w

    Θ͔Ε͹୯७ w ѱ͟͠·ʹݴΘΕΔ͜ͱ͕ଟ͍͕ɺMockΛखܰʹ࡞ΕΔͷ͸ େ͖ͳϝϦοτ w helperʜ
  10. ΄͔΋ಡΉ w Eloquent, Http͸ಡΈࠐΜͰ͓͘ͱḿΔ w ࣮຿໘ͰҰ൪ॏๅ͞Εͦ͏ w Queue/Event w ඇಉظॲཧ

    w ͜Ε΋த਎Λ஌ͬͯΔͱώʔϩʔѻ͍
  11. SymfonyComponent w ා͘ͳ͍ w console, process͋ͨΓ͸஌͓ͬͯ͘ͱଞͷ-BSBWFM Ҏ֎ͷϓϩδΣΫτͰ࢖͍υίϩຬࡌ w dom-crawler, css-selector͸εΫϨΠϐϯάͷ͓

    ڙ w ΋ͷͷ͍ͭͰ͘Β͍ͷؾ࣋ͪͰಡΉ
  12. Changelog w Laravel͸όʔδϣϯΞοϓ͕සൟ w νΣϯδϩάͰ೺Ѳ͢Δɻ࠷͔ۙͳΓஸೡʹͳͬ ͨ • https://github.com/laravel/ framework/blob/5.2/CHANGELOG.md

  13. ࢼ͢

  14. ࢼ͢ w ॻ͘ ಈ͔͢ w Ͳ͏ಈ͔͢ w artisan serve +

    ϒϥ΢β  ΋ͬͱखܰʹࢼ͢ํ๏͕̎ͭʂ
  15. tinker w ߴੑೳͳREPL(Read-eval-print loop) w ࢼ͢ʹ͸े෼ w ModelFactory Λ߹ΘͤΔͱศར͗ͯ͢ඓ݂ग़Δ ̎ͭ໨͸ʜ

  16. ςετΛॻ͘

  17. ໊ݴʂʂʂʂ

  18. ςετΛॻ͘ w ಈ࡞֬ೝ͍ͭͰʹॻ͘ w ΋ͪΖΜ࣮૷͢Δલʹॻ͘ͷ΋͍͍ w ϋʔυϧΛԼ͛ͯ w ׬ᘳΛٻΊΔͳ w

    ೰ΜͩΒ࣭໰ w ࣾ಺ʹ͍ͳ͔ͬͨΒTwitter΍phpusers-jaͷSlackͰ࣭ ໰ͯ͠ΈΑ͏
  19. ςετΛॻ͘ wίϯτϩʔϥʔ΍Ϟσϧʹdd ॻ͘ҐͳΒςετ Ͱॻ͜͏ wୡ੒ײͰͯ͘Δ wςετॻ͘ͱઃܭྗ΋ͭ͘ wςετͮ͠Β͍ίʔυΛॻ͚ͳ͘ͳΔ

  20. LaravelΛֶΜͩઌʹ͋Δ΋ͷ w SymfonyComponent౳ w Α͘ग़དྷͨ֎෦ϥΠϒϥϦ w Laravel Elixir/Laravel Valet w

    ଞݴޠ w PHPʹͩ͜ΘΒͳ͍ w Queue / Database w ϛυϧ΢ΣΞ
  21. LaravelΛֶΜͩઌʹ͋Δ΋ͷ w Laravel͸PHP੡ͷWebΞϓϦέʔγϣϯɾϑϨʔϜϫʔΫ w ͜Ε͚ͩͰ͸ϓϩμΫτ͸׬੒͠ͳ͍ w ઃܭٕ๏ɾଞݴޠɾϛυϧ΢ΣΞ w ܨ͕Δ൶͸ͨ͘͞Μ͋Δ w

    ࣗ෼ͷڵຯͷ͋Δํ޲΁
  22. ؔ৺Λ޿͛Α͏ʂ

  23. Զୡͷษڧ͸͜Ε͔Βͩʂʂ

  24. ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ