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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
320
WebXR で Web をもっと楽しもう
qst_exe
0
340
今年のメタバースについての取り組みとこれから
qst_exe
0
480
今年のメタバースについての取り組みとこれから
qst_exe
0
120
visionOSアプリ開発について
qst_exe
0
230
visionOSアプリ開発のすゝめ
qst_exe
0
240
Other Decks in Programming
See All in Programming
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
300
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
340
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
7
5.1k
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
JRuby: Past, Present, and Future
headius
0
210
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
140
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
400
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
220
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
18
19k
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
180
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
340
Featured
See All Featured
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
720
Building an army of robots
kneath
307
47k
How to build a perfect <img>
jonoalderson
1
6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
Designing for Timeless Needs
cassininazir
1
510
Everyday Curiosity
cassininazir
0
330
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Evolving SEO for Evolving Search Engines
ryanjones
0
300
Fireside Chat
paigeccino
43
4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
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!!