Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
[Laravel5.6]CHANGELOGを斜め読み
Search
k-kurikuri
January 23, 2018
Technology
0
5k
[Laravel5.6]CHANGELOGを斜め読み
2018/01/23 開催Laravel/Vue.js勉強会#3
k-kurikuri
January 23, 2018
Tweet
Share
More Decks by k-kurikuri
See All by k-kurikuri
Awesome goにあるOSSをGithubStar数高い順に出力するツールを作った
k_kurikuri
0
570
Laravel Sparkでサービス開発に注力する
k_kurikuri
0
1.1k
GKEとGaurunで作るPush通知サーバ
k_kurikuri
3
420
Lambdaで勤怠連絡
k_kurikuri
1
1.5k
Starting Laravel Spark
k_kurikuri
0
400
GoビギナーがGCPでGoアプリをリリースした話
k_kurikuri
1
850
英語で質問した話を 聞いて欲しい
k_kurikuri
0
240
Laravel5.5 - Package Auto Discoveryを理解する
k_kurikuri
0
1.1k
Laravelで乙女ゲームを開発した話
k_kurikuri
2
600
Other Decks in Technology
See All in Technology
Java x Spring Boot Warm up
kazu_kichi_67
2
490
来年もre:Invent2024 に行きたいあなたへ - “集中”と“つながり”で楽しむ -
ny7760
0
460
一休.comレストランにおけるRustの活用
kymmt90
3
580
WINTICKETアプリで実現した高可用性と高速リリースを支えるエコシステム / winticket-eco-system
cyberagentdevelopers
PRO
1
190
新卒1年目が向き合う生成AI事業の開発を加速させる技術選定 / ai-web-launcher
cyberagentdevelopers
PRO
7
1.5k
使えそうで使われないCloudHSM
maikamibayashi
0
170
Forget efficiency – Become more productive without the stress
ufried
0
100
チームを主語にしてみる / Making "Team" the Subject
ar_tama
4
300
Figma Dev Modeで進化するデザインとエンジニアリングの協働 / figma-with-engineering
cyberagentdevelopers
PRO
1
430
Emacs x Nostr
hakkadaikon
1
150
君は隠しイベントを見つけれるか?
mujyun
0
280
日経電子版におけるリアルタイムレコメンドシステム開発の事例紹介/nikkei-realtime-recommender-system
yng87
1
490
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
404
65k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Being A Developer After 40
akosma
86
590k
10 Git Anti Patterns You Should be Aware of
lemiorhan
654
59k
Making the Leap to Tech Lead
cromwellryan
132
8.9k
Facilitating Awesome Meetings
lara
49
6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
32
1.8k
Statistics for Hackers
jakevdp
796
220k
Speed Design
sergeychernyshev
24
570
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Done Done
chrislema
181
16k
Scaling GitHub
holman
458
140k
Transcript
[Laravel5.6] CHANGELOGΛࣼΊಡΈ @Laravel/Vue.jsษڧձ#3
͢͜ͱ • 2018/02ϦϦʔε༧ఆͷLaravel5.6 • ඞཁͳPHPͷversion? • CHANGELOG.md͔ΒมߋΛ͍͔ͭ͘ൈਮ • ॴײ
Who are you? • twitter @ k-kurikuri • ιʔγϟϧήʔϜΤϯδχΞ •
Node.js, TypeScript, C#, Laravel…
Laravel5.6Ͱ ඞཁͳPHP -version?
composer.jsonΛݟͯΈΔ
"require": { "php": “^7.1.3", "…" } PHP 7.1.3Ҏ্͕ඞਢ
None
General • ApplicationΫϥεʹrunningUnitTestsϝιο υ͕Ճ • UnitTest࣮ߦத͔Ͳ͏͔Λఆ͢Δ • env(‘APP_ENV’) === ‘testing’ͷϥούʔ
Arrays • Illuminate\Support\Arr::wrap(null)͕ۭྻΛ ฦ͢Α͏ʹͳͬͨ • 5.5ver·Ͱ[null]͕ฦΔ͕ɺ5.6ver[]
Artisan Console • optimizeίϚϯυͷআ • 5.5verͰdeprecated͔ۭ࣮ͭͩͬͨ • Taylor͞Μᐌ͘ɺOpcacheͷ࠷దԽʹΑͬͯ optimizeίϚϯυʹΑΔύϑΥʔϚϯε্ ͕ෆཁʹͳͬͨͨΊআ
Artisan Console • migrate:statusͷग़ྗ݁ՌʹΧϥϜ͕Ճ • migrationͷ࣮ߦॱΛཧ͢ΔbatchΧϥϜͷ number͕֬ೝͰ͖ΔΑ͏ʹͳͬͨ
5.5ver
5.6ver
Database • Illuminate/Database/Schema/Blueprint:: morphsʹΑΔෳ߹indexఆٛॱ͕มߋ • [_id, _type]ͷෳ߹index͔Βɺ[_type, _id]ʹ • morphsϝιουΛ༻͍ͯͨ͠ํ͝ҙ
Queues • Illuminate/Contracts/Queue/JobͷIFʹ getJobId(), payload()͕Ճ • IFΛ࣮ͨ͠JobυϥΠόʔ࣮ඞਢʹ
Responses • Controller͔ΒModel::create()ͷ݁ՌΛϨεϙ ϯε͢Δͱ… • HTTP 201 Created success͕ฦΔ
class UserController extends Controller { public function store(UserStoreRequest $request) {
return User::create( $request->only(['email', ‘password’]) ); } // … }
Blade • csrf, methodσΟϨΫςΟϒ͕Ճ • @csrf, @method(‘PUT’)ͳͲͱهड़Մೳʹͳͬ ͨ
<form> {{ csrf_field() }} {{ method_field('PUT') }} <!-- ... -->
</form> <form> @csrf @method('put') <!-- ... --> </form>
ॴײ • ࠓͷॴɺେ͖ͳมߋͳͦ͞͏ • frameworkҎ֎Ͱมߋ͋ΔͱࢥΘΕ • 5.6branchʹPR͕͋Γɺ·ͩ·ͩߋ৽͋Γͦ ͏ • ϦϦʔε·Ͱ͏গͪ͠·͢