Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
LaravelをPHP8で動かしてみた
Search
qst_exe
January 22, 2021
Programming
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
LaravelをPHP8で動かしてみた
「Webナイト宮崎 Vol.12 ~てげPHP学びたい~」でLTした内容です
https://tegehoge.connpass.com/event/199828/
qst_exe
January 22, 2021
More Decks by qst_exe
See All by qst_exe
Roblox であそぼ
qst_exe
0
150
Apple Vision Pro であそぼ in さくらじまハウス
qst_exe
0
69
Google I/O 2024 Firebase のアップデート内容
qst_exe
0
250
Babylon.js で始めるヘッドレス CMS/A headless CMS on Babylon.js
qst_exe
0
310
WebXR で Web をもっと楽しもう
qst_exe
0
340
今年のメタバースについての取り組みとこれから
qst_exe
0
470
今年のメタバースについての取り組みとこれから
qst_exe
0
120
visionOSアプリ開発について
qst_exe
0
230
visionOSアプリ開発のすゝめ
qst_exe
0
240
Other Decks in Programming
See All in Programming
すこし踏み込む CancellationToken
htkym
1
480
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
220
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
120
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
490
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
170
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
250
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
160
Family mrubyの進捗
kishima
1
130
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
5
3.3k
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
120
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
5
7.3k
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
1.7k
Featured
See All Featured
Fireside Chat
paigeccino
43
4k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
890
Agile that works and the tools we love
rasmusluckow
331
22k
Writing Fast Ruby
sferik
630
63k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
870
Accessibility Awareness
sabderemane
1
210
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
380
Joys of Absence: A Defence of Solitary Play
codingconduct
1
520
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Practical Orchestrator
shlominoach
192
12k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Transcript
LaravelΛPHP8Ͱಈ͔ͯ͠Έͨ WebφΠτٶ࡚ Vol. 12 2021-01-22 ͨ͘͢Μ
Agenda 1. ࣗݾհ 2. PHP8ͷ֓ཁհ 3. Laravelͷಋೖ
ࣗݾհ ◆໊લɿͨ͘͢Μ ◆ग़ɿࣛࣇౡݝͷେ۱ (ٶ࡚دΓͷχϯήϯͰ͢ʂ) ◆ࣗݾհ ιϑτΣΞΤϯδχΞ(εϚϗΞϓϦ։ൃ, WebγεςϜ։ൃ) ઐֶߍͷඇৗۈߨࢣ(PHPڭ͑ͯ·͢) ࣛࣇౡ.mk, ώϥϚαͳͲͷίϛϡχςΟ׆ಈ
SNSͬͯ·͢ʔ
ྗΛೖΕ͍ͯΔίϛϡχςΟ׆ಈ ࣛࣇౡ.mk ώϥϚα ॳݟͷਓͰؾܰʹࢀՃͰ͖ΔίϛϡχςΟ ڞಉ։ൃͱ͔৭ʑͬͯΔΤϯδχΞαʔΫϧ
PHP8ʹ͍ͭͯ
ओཁػೳ • JITͷಋೖ • Named Arguments • Attributes • Constructor
Property Promotion • Union Types • Match Expressions • Nullsafe Operator • ൺֱԋࢉࢠ(==)ͷڍಈݟ͠
PHP7͔ΒPHP8ͷॻ͖͑ • ൺֱԋࢉࢠ(==)Λ͍ͬͯͳ͚Εॻ͖͑ͦ͢͠͏ • PHP5͔ΒPHP7ͷॻ͖͑େมͩͬͨهԱ(ඇਪͳॻ͖ํ͕ଟ ͔͍͔ͬͨͤ) • Laravelͷ߹ɺ6~8ܥͷ߹ʹPHP8ʹରԠ͍ͯ͠Δͱͷ͜ͱ • https://blog.laravel.com/laravel-php-8-support
Laravelͷಋೖ
લఏ • ϩʔΧϧڥ(macOS)ͱQAڥ(Heroku)Ͱݕূ • όʔδϣϯཧʹphpbrewΛར༻ • ରͷΞϓϦतۀ༻ʹ࡞ͬͨ࠷ݶͷCRUDΞϓϦ • Laravelͷόʔδϣϯ7.xܥ •
ݫ֨ϞʔυͰܕݫີʹཧ
None
PHP8ͷΠϯετʔϧ&༗ޮԽ $ php -v PHP 7.3.11 (cli) (built: Jun 5
2020 23:50:40) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies $ phpbrew self-update $ phpbrew known --update $ phpbrew install 8.0.1 +default +dbs +curl $ phpbrew use php-8.0.1 $ php -v PHP 8.0.1 (cli) (built: Jan 22 2021 01:59:33) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.1, Copyright (c) Zend Technologies
ϩʔΧϧαʔόͷىಈ $ php artisan serve Laravel development server started: http://127.0.0.1:8000
PHP 8.0.1 Development Server (http://127.0.0.1:8000) started ىಈͨ͠ʂʂ
HerokuͷσϓϩΠ "php": "^8.0.0" "fakerphp/faker": "^1.9.1" "phpunit/phpunit": "^9.3" $ composer update
composer.jsonͷPHPόʔδϣϯΛߋ৽
HerokuͷσϓϩΠ -----> Building on the Heroku-20 stack -----> PHP app
detected -----> Bootstrapping... -----> Installing platform packages... - php (8.0.1) - ext-mbstring (bundled with php) - apache (2.4.46) - nginx (1.18.0) - composer (1.10.19) (தུ) -----> Launching... Released v19 https://laravel-todo-php8.herokuapp.com/ deployed to Heroku PHP8ͰͷHerokuͷσϓϩΠޭʂʂ
݁ LaravelΛPHP8Ͱಈ͔͢ͷಛʹͳ͠
ࠓޙͷ՝ • ։ൃɾQAڥͰ͔͠ར༻Ͱ͖͍ͯͳ͍ͷͰɺϓϩμΫγϣϯڥͰ ͑ΔΑ͏ʹݕূΛ͢Δ • PHP8ʹͳͬͯύϑΥʔϚϯε͕ͲΕ͘Β͍վળͨ͠ͷ͔ͷௐࠪ • Laravel 5.xܥͰPHP8Λ͑ΔΑ͏ʹ͢ΔͨΊͷௐࠪ
དྷिʹ͘͘ձɺདྷ݄ʹϋοΧιϯΓ·͢ ڵຯͷ͋Δํʮࣛࣇౡ.mkʯͰݕࡧΛʂ
Thank You!!