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
生成AIと知識グラフの相互利用に基づく文書解析
koujikozaki
1
150
国土交通省 データコンペ参加者向け勉強会
takehikohashimoto
0
150
来年もre:Invent2024 に行きたいあなたへ - “集中”と“つながり”で楽しむ -
ny7760
0
480
Shift-from-React-to-Vue
calm1205
3
1.3k
「視座」の上げ方が成人発達理論にわかりやすくまとまってた / think_ perspective_hidden_dimensions
shuzon
2
6.3k
CyberAgent 生成AI Deep Dive with Amazon Web Services / genai-aws
cyberagentdevelopers
PRO
1
480
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
AWS で実現! 負荷テストと自動オブザーバビリティ (AWS 秋の Observability 祭り 2024)
mabuchs
1
110
いまさらのStorybook
ikumatadokoro
0
150
2024-10-30-reInventStandby_StudyGroup_Intro
shinichirokawano
1
640
現地でMeet Upをやる場合の注意点〜反省点を添えて〜
shotashiratori
0
540
コンテナのトラブルシューティング目線から AWS SAW についてしゃべってみる
kazzpapa3
1
110
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
72
5.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Building a Scalable Design System with Sketch
lauravandoore
459
33k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Imperfection Machines: The Place of Print at Facebook
scottboms
264
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.6k
Adopting Sorbet at Scale
ufuk
73
9k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Into the Great Unknown - MozCon
thekraken
31
1.5k
How STYLIGHT went responsive
nonsquared
95
5.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
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 ࠓͷ༰େମϒϩάʹॻ͍ͯ·͢
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ