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
about Laravel 5.3
Search
localdisk
September 12, 2016
Technology
1
890
about Laravel 5.3
Laravel Meetup Vol.8 で話したスライドです。
localdisk
September 12, 2016
Tweet
Share
More Decks by localdisk
See All by localdisk
Laravelにおける後悔しないためのアプリケーション設計
localdisk
8
5.7k
Laravel の効率的な学び方
localdisk
9
3.1k
逆引きLaravel
localdisk
7
13k
Other Decks in Technology
See All in Technology
Apple/Google/Amazonの決済システムの違いを踏まえた定期購読課金システムの構築 / abema-billing-system
cyberagentdevelopers
PRO
1
210
Aurora_BlueGreenDeploymentsやってみた
tsukasa_ishimaru
1
120
Figma Dev Modeで進化するデザインとエンジニアリングの協働 / figma-with-engineering
cyberagentdevelopers
PRO
1
430
AIを駆使したゲーム開発戦略: 新設AI組織の取り組み / sge-ai-strategy
cyberagentdevelopers
PRO
1
130
プロダクトチームへのSystem Risk Records導入・運用事例の紹介/Introduction and Case Studies on Implementing and Operating System Risk Records for Product Teams
taddy_919
1
160
AWS re:Inventを徹底的に楽しむためのTips / Tips for thoroughly enjoying AWS re:Invent
yuj1osm
1
540
신뢰할 수 있는 AI 검색 엔진을 만들기 위한 Liner의 여정
huffon
0
260
物価高なラスベガスでの過ごし方
zakky
0
350
AWS CDKでデータリストアの運用、どのように設計する?~Aurora・EFSの実践事例を紹介~/aws-cdk-data-restore-aurora-efs
mhrtech
4
630
コンテンツを支える 若手ゲームクリエイターの アートディレクションの事例紹介 / cagamefi-game
cyberagentdevelopers
PRO
1
120
VPC間の接続方法を整理してみた #自治体クラウド勉強会
non97
1
770
チームを主語にしてみる / Making "Team" the Subject
ar_tama
4
300
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
65
11k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Navigating Team Friction
lara
183
14k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Embracing the Ebb and Flow
colly
84
4.4k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
32
1.8k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
355
29k
How GitHub (no longer) Works
holman
311
140k
Practical Orchestrator
shlominoach
186
10k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
328
21k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
3
370
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Transcript
about Laravel 5.3 Laravel Meetup Vol.8 @localdisk
ࣗݾհ দඌେ ·͓ͭ·͞Δ EEE ΤϯδχΞ Πϊϕʔλʔδϟύϯॴଐ ΤϯδχΞɾσβ ΠφɾσΟϨΫλΛืूத ධൃചத
@localdisk
• New Feature5.3 • SimplePagination • Notification • Upgrade •
Auth • MySQL strict Mode • Upgrade͖͔͢? Agenda
Simple Pagination New Feature 5.3
5.3ҎલPresenterΛఆٛ͢Δඞཁ͕͋ͬͨ Pagination customize is
// Blade͕ࢦఆͰ͖ΔΑ͏ʹͳͬͨʂ {{ $users->links(‘pagination::bootstrap-4’) }} ΧελϚΠζ php artisan vendor:publish --tag=laravel-pagination
• bootstrap-4.blade.php • default.blade.php • simple-bootstrap-4.blade.php • simple-default.blade.php Pagination customize is
• $paginator • Illuminate\Pagination\Paginator • hasPages - ϖʔδ͕͋Δ͔? • onFirstPage
- ࠷ॳͷϖʔδ • previousPageUrl - લͷϖʔδ • nextPageUrl - ࣍ͷϖʔδ • hasMorePages - ࣍ͷϖʔδ͕͋Δ͔ Pagination Ͱ͏ϝιου
• $elements • LengthAwarePaginatorͷΈ • paginateϝιουLengthAwarePaginator • simplePaginatePaginator • [ϖʔδ൪߸
=> URL] ͷ array PaginationͷϦϯΫͰ༻͞ΕΔม
Notification New Feature 5.3
• ௨Ϋϥε • ࠓ·ͰEvent࡞ͬͯΞϨίϨؤு͍ͬͯͨͷ͕ ਵָʹͳΔ • Ϣʔβʔ͕ొ͞Εͨ • Ϣʔβʔ͕Λങͬͨ •
͓͍߹Θ͕ͤ͋ͬͨ • Notification
• ඪ४Ͱ༻ҙ͞Ε͍ͯΔ௨ • Mail • Database • SMS • Slack
• Laravel Notification Channels • http://laravel-notification-channels.com/ Notification
• ௨ΫϥεΛ࡞͢Δ(make:notification) • ௨ରͷΫϥεʹ Notifiable traitΛuse͢Δ class User { use
Notifiable; } $user->notify(new UserRegisterd); • EventExceptionHandlerͱซ༻͢Δ Notification
Upgradeʹ͍ͭͯ Upgrade 5.3
• ݁ߏมΘͬͯΔ • Route • logout͕POSTʹͳͬͨΓ • 5.3ҎલͷAuthΛͬͯΔ߹मਖ਼͕ඞཁ • Route::get('/logout',
‘Auth\LoginController@logout'); • ύεϫʔυϦηοτʹNotification͕༻͞Ε ͯͨΓ • https://laravel.com/docs/5.3/upgrade Auth
• false -> true • ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,N O_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DI VISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_EN GINE_SUBSTITUTION
• ࡶͳSQLॻ͍ͯΔͱͻͲ͍ʹ͍͋ͦ͏ MySQL Strict Mode
• ࣮ͦΜͳʹେม͡Όͳ͍ • 5.3ͷ৽ػೳ͕͍͍ͨ or 5.2ΛͬͯΔͷͰ ͋Ε͓ͬͯ͘ͷ͕Φεεϝ • 5.1ͬͯΔਓ͓ΈͰ Upgrade͖͔͢?
• http://tech.innovator.jp.net/entry/ 2016/08/17/115629 • http://tech.innovator.jp.net/entry/ 2016/08/02/111614 ࠓͷ༰େମϒϩάʹॻ͍ͯ·͢
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ