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
990
1
Share
about Laravel 5.3
Laravel Meetup Vol.8 で話したスライドです。
localdisk
September 12, 2016
More Decks by localdisk
See All by localdisk
Laravelにおける後悔しないためのアプリケーション設計
localdisk
8
6k
Laravel の効率的な学び方
localdisk
9
3.4k
逆引きLaravel
localdisk
7
13k
Other Decks in Technology
See All in Technology
あるアーキテクチャ決定と その結果/architecture-decision-and-its-result
hanhan1978
2
590
Code Interpreter で、AIに安全に コードを書かせる。
yokomachi
0
680
幾億の壁を超えて/Beyond Countless Walls(JP)
ikuodanaka
0
120
Hello UUID
mimifuwacc
0
130
ある製造業の会社全体のAI化に1エンジニアが挑んだ話
kitami
2
900
Data Hubグループ 紹介資料
sansan33
PRO
0
2.9k
OBI+APMでお手軽にアプリケーションのオブザーバビリティを手に入れよう
kenshimuto
0
250
Oracle Cloud Infrastructure(OCI):Onboarding Session(はじめてのOCI/Oracle Supportご利⽤ガイド)
oracle4engineer
PRO
2
17k
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
180
Kubernetes基盤における開発者体験 とセキュリティの両⽴ / Balancing developer experience and security in a Kubernetes-based environment
chmikata
0
250
プロダクトを触って語って理解する、チーム横断バグバッシュのすすめ / 20260411 Naoki Takahashi
shift_evolve
PRO
1
270
チームで育てるAI自走環境_20260409
fuktig
0
1k
Featured
See All Featured
Building Applications with DynamoDB
mza
96
7k
The browser strikes back
jonoalderson
0
940
Abbi's Birthday
coloredviolet
2
6.5k
From π to Pie charts
rasagy
0
160
So, you think you're a good person
axbom
PRO
2
2k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
330
Prompt Engineering for Job Search
mfonobong
0
260
The Curious Case for Waylosing
cassininazir
0
290
Test your architecture with Archunit
thirion
1
2.2k
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Google's AI Overviews - The New Search
badams
0
960
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
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 ࠓͷ༰େମϒϩάʹॻ͍ͯ·͢
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ