Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

ࣗݾ঺հ দඌେ ·͓ͭ·͞Δ EEE ΤϯδχΞ Πϊϕʔλʔδϟύϯॴଐ ΤϯδχΞɾσβ ΠφɾσΟϨΫλΛืूத Laravel 3͔Βͷݹࢀ Ϣʔβʔ ޷ධൃചத @localdisk

Slide 3

Slide 3 text

-BSBWFMͷಛ௃ w ଟػೳ w جຊతͳMVC+ServiceContainer, Event, Queueʜ w มԽ͕ܹ͍͠ w ݱࡏ w ͷϦϦʔε͸ มԽΛ೺Ѳ͢Δʹ͸ޮ཰తʹֶͿඞཁ͕͋Δ

Slide 4

Slide 4 text

ͦͷ·͑ʹ

Slide 5

Slide 5 text

ޮ཰తʹֶͿ४උΛ͠Α͏ w IDE࢖͓͏ • PhpStorm/NetBeans w ΫϥεɺϑΝΠϧɺγϯϘϧΛ։͘ w ఆٛઌʹඈͿɺ࢖༻͞Ε͍ͯΔՕॴʹඈͿ w ࣗ৴ͷ͋Δਓ͸IDE͡Όͳͯ͘΋OK

Slide 6

Slide 6 text

ֶͿαΠΫϧ lಡΉzlࢼ͢ ॻ͘ಈ͔͢ z

Slide 7

Slide 7 text

ಡΉ

Slide 8

Slide 8 text

ίΞΛಡΉ 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 ͜͜Β΁Μ·ͰಡΊ͹͍͍ͩͨΘ͔Δ

Slide 9

Slide 9 text

ServiceProvider/FacadeΛಡΉ w Illuminate\Hashing\HashServiceProvider w Ұ൪୯७ɻॳΊͯಡΉͷʹ࠷ద w Illuminate\Support\Facade w ഑ྻ͔ΒऔΓग़͍ͯ͠Δ͚ͩ w Θ͔Ε͹୯७ w ѱ͟͠·ʹݴΘΕΔ͜ͱ͕ଟ͍͕ɺMockΛखܰʹ࡞ΕΔͷ͸ େ͖ͳϝϦοτ w helperʜ

Slide 10

Slide 10 text

΄͔΋ಡΉ w Eloquent, Http͸ಡΈࠐΜͰ͓͘ͱḿΔ w ࣮຿໘ͰҰ൪ॏๅ͞Εͦ͏ w Queue/Event w ඇಉظॲཧ w ͜Ε΋த਎Λ஌ͬͯΔͱώʔϩʔѻ͍

Slide 11

Slide 11 text

SymfonyComponent w ා͘ͳ͍ w console, process͋ͨΓ͸஌͓ͬͯ͘ͱଞͷ-BSBWFM Ҏ֎ͷϓϩδΣΫτͰ࢖͍υίϩຬࡌ w dom-crawler, css-selector͸εΫϨΠϐϯάͷ͓ ڙ w ΋ͷͷ͍ͭͰ͘Β͍ͷؾ࣋ͪͰಡΉ

Slide 12

Slide 12 text

Changelog w Laravel͸όʔδϣϯΞοϓ͕සൟ w νΣϯδϩάͰ೺Ѳ͢Δɻ࠷͔ۙͳΓஸೡʹͳͬ ͨ • https://github.com/laravel/ framework/blob/5.2/CHANGELOG.md

Slide 13

Slide 13 text

ࢼ͢

Slide 14

Slide 14 text

ࢼ͢ w ॻ͘ಈ͔͢ w Ͳ͏ಈ͔͢ w artisan serve + ϒϥ΢β ΋ͬͱखܰʹࢼ͢ํ๏͕̎ͭʂ

Slide 15

Slide 15 text

tinker w ߴੑೳͳREPL(Read-eval-print loop) w ࢼ͢ʹ͸े෼ w ModelFactory Λ߹ΘͤΔͱศར͗ͯ͢ඓ݂ग़Δ ̎ͭ໨͸ʜ

Slide 16

Slide 16 text

ςετΛॻ͘

Slide 17

Slide 17 text

໊ݴʂʂʂʂ

Slide 18

Slide 18 text

ςετΛॻ͘ w ಈ࡞֬ೝ͍ͭͰʹॻ͘ w ΋ͪΖΜ࣮૷͢Δલʹॻ͘ͷ΋͍͍ w ϋʔυϧΛԼ͛ͯ w ׬ᘳΛٻΊΔͳ w ೰ΜͩΒ࣭໰ w ࣾ಺ʹ͍ͳ͔ͬͨΒTwitter΍phpusers-jaͷSlackͰ࣭ ໰ͯ͠ΈΑ͏

Slide 19

Slide 19 text

ςετΛॻ͘ wίϯτϩʔϥʔ΍Ϟσϧʹdd ॻ͘ҐͳΒςετ Ͱॻ͜͏ wୡ੒ײͰͯ͘Δ wςετॻ͘ͱઃܭྗ΋ͭ͘ wςετͮ͠Β͍ίʔυΛॻ͚ͳ͘ͳΔ

Slide 20

Slide 20 text

LaravelΛֶΜͩઌʹ͋Δ΋ͷ w SymfonyComponent౳ w Α͘ग़དྷͨ֎෦ϥΠϒϥϦ w Laravel Elixir/Laravel Valet w ଞݴޠ w PHPʹͩ͜ΘΒͳ͍ w Queue / Database w ϛυϧ΢ΣΞ

Slide 21

Slide 21 text

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

Slide 22

Slide 22 text

ؔ৺Λ޿͛Α͏ʂ

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

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