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

KKA (賢いかわいいartisan)

KKA (賢いかわいいartisan)

2016/06/10 第3回ぐるなびエンジニアLT大会

Shoko Okochi

June 10, 2016
Tweet

More Decks by Shoko Okochi

Other Decks in Technology

Transcript

  1. দଜᠳࢠ (@okoysm) • ϨετϥϯαʔϏε։ൃɾӡ༻ηΫγϣϯ
 αʔναʔϏε։ൃάϧʔϓ ݕࡧνʔϜ (2016.3ೖࣾ) • લ৬ɿFlex/ActionScript/Java •

    Geek Women Japan / dots.ঁࢠ෦ ӡӦ • ʮΤϯδχΞɹ͠ΐ͜ʯͰάάΕ͹େମࢲͷ৘ใ • αοΫεਧ͖ϥϒϥΠόʔʢՖཅਪ͠ʣ ཉ͍͠΋ͷɿڧ͍݈߁ͳ਎ମɻମྗ͕ͳ͍ɻ
  2. Laravelͷಛ௃ • ଟछଟ༷ͳόϦσʔγϣϯϧʔϧ • ༰қͳ֦ுੑ • ॊೈͳαʔϏε (DI) ίϯςφ •

    ࢖͍΍͘͢࢖༻४උͷख͕͔͔ؒΒͳ͍ORM • ࣮ߦ͠΍͍͢ςετ ग़యɿ-BSBWFMϦϑΝϨϯε
  3. ։ൃ؀ڥ • Larval Homestead • ެࣜVagrant Box • VagrantͱVirtual Box͕ϩʔΧϧʹ͋Ε͹͙͢࢖

    ͑Δ • Ubuntu 14.04, Nginx, MySQL, PostgreSQL, Node.js, MemcachedͳͲҰ௨Γೖ͍ͬͯΔ ໘౗ͳ։ൃ؀ڥߏங΋)PNFTUFBEͰ؆୯ʹʂ
  4. खॱ 1. ϚΠάϨʔγϣϯͱEloquentϞσϧΛ࡞੒
 
 2. ࡞੒͞Εͨ਽ܗΛฤू 3. σʔλϕʔεΛ࡞੒͢Δ $ php

    artisan make:model DataAccess¥¥Eloquent¥¥Comment -m $ php artisan make:model DataAccess¥¥Eloquent¥¥Entry -m $ php artisan migrate —seed खॱͰ࣮ࡍͷςʔϒϧ໊΍ΧϥϜͷઃఆ͸ߦ͏Α
  5. σʔλϕʔε࡞੒׬ྃʂ $ mysql -u homestead -psecret homestead mysql> show tables;

    +——————————————————-+ |Tables_in_homestead| +——————————————————-+ |comments | |entries | |migrations | |users | +——————————————————-+ NZTRM΁ϩάΠϯ͠ͳͯ͘΋Ͱ͖ͪΌ͏ʂ
  6. Confluenceʹॻ͍ͯ͋Δ͜ͱ • ؀ڥߏங • Oracle DB΁ͷ઀ଓํ๏ • Laravel5.1͔Β5.2Ҏ߱ʹΞοϓσʔτ͢Δ࣌ʹؾΛ͚ͭΔ͜ͱ • Կ΋ͯ͠ͳ͍ͷʹartisan͕Exceptionు͘Α͏ʹͳͬͨ

    • *.blade.php͕ಡ·Εͳ͍ • LaravelΛApacheͷαϒσΟϨΫτϦʹΠϯετʔϧ͢Δʹ͸ • ͙Δͳͼ։ൃͰೖΕ͓͖͍ͯͨLaravelͷύοέʔδ • ϩάग़ྗઌɾग़ྗϨϕϧͷมߋํ๏ • σϓϩΠઌͰಈ͔ͳ͍৔߹ͷτϥϒϧγϡʔτ Ұ௨Γͭ·͍ͣͨɻਏ͔ͬͨɻ
  7. ࢀߟϦϯΫ • Laravel ϦϑΝϨϯε[Ver.5.1 LTS ରԠ] Web৬ਓ޷Έͷ৽ੈ୅ PHPϑϨʔϜϫʔΫ ৽ݪ խ࢘

    • https://www.amazon.co.jp/dp/B019ONT9R8/ ref=cm_sw_r_tw_dp_eOcwxb2BCDCPY • ϥϥா • https://laravel10.wordpress.com/category/%E3%81%AF %E3%81%98%E3%82%81%E3%81%A6%E3%81%AE- laravel-5-1/ -BSBWFMϦϑΝϨϯε͸͍ͭͰ΋ି͠·͢ʂ