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
580
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
AI前提のサービス運用ってなんだろう?
ryuichi1208
8
1.4k
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
220
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
810
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
12
1.5k
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
7
730
TypeScript、上達の瞬間
sadnessojisan
48
14k
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
150
個人でもIAM Identity Centerを使おう!(アクセス管理編)
ryder472
4
250
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.2k
SSMRunbook作成の勘所_20241120
koichiotomo
3
180
Storybook との上手な向き合い方を考える
re_taro
5
2.4k
Python(PYNQ)がテーマのAMD主催のFPGAコンテストに参加してきた
iotengineer22
0
570
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
The Pragmatic Product Professional
lauravandoore
31
6.3k
KATA
mclloyd
29
14k
Designing the Hi-DPI Web
ddemaree
280
34k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Designing for Performance
lara
604
68k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
A better future with KSS
kneath
238
17k
Speed Design
sergeychernyshev
25
620
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
910
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
A Tale of Four Properties
chriscoyier
156
23k
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͕͋Γɺ·ͩ·ͩߋ৽͋Γͦ ͏ • ϦϦʔε·Ͱ͏গͪ͠·͢