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
Laravel 8 注目機能紹介!
Search
MasaKu
November 25, 2020
Technology
510
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Laravel 8 注目機能紹介!
【増枠】LaravelのLT会 - vol.1 #laravellt
https://rakus.connpass.com/event/193294/
MasaKu
November 25, 2020
More Decks by MasaKu
See All by MasaKu
自作したプログラムを Packagist に登録して 世界中の PHPer にインストールしてもらおう
masaku_e
0
1.7k
今だから話せるPHP8バージョンアップの裏側~全5サービスの事例紹介~
masaku_e
3
4k
メルマガのすすめ
masaku_e
0
690
PHPerKaigi2019への参加がきっかけで社内勉強会の主催するようになった話
masaku_e
1
1.6k
メルマガ配信サービスの越境プロジェクト ~メール到達率向上への挑戦~
masaku_e
3
3.2k
Other Decks in Technology
See All in Technology
シンガポールで登壇してきます
yama3133
0
340
[Droidcon Orlando '26] The Android Lens: Applying Mobile Forensics to AI Performance
amanda_hinchman
1
100
AI x 開発生産性を取り巻く予算戦略と投資対効果
i35_267
7
2.8k
”AIを使う” から ”AIに任せる” へ ─ 開発プロセスを再設計してAIを組織標準にするまで
cyberagentdevelopers
PRO
1
130
複数プロダクト組織のAIネイティブ化における戦略 / AICon2026_kude
rakus_dev
0
300
CDKで書くECSのベストプラクティス、 改めて考え直す2026 #cdkconf2026
makies
3
930
なぜ、あなたのAPIは使われないのか? AX時代の設計原則、ガードレール、運用体制
yokawasa
1
200
SRENEXT_2026_Chairs__Talks_in_Tamachi.sre.pdf
srenext
1
130
Playwright × AI Agent でE2Eテストはどう変わるか AI駆動テストの可能性と実用検証の結果
taiga7543
2
770
2年前に削除したPHPクラスが、 ある日突然決済をエラーにした
ykagano
1
730
Webアプリ認証の全体像 / The Big Picture of Web App Authentication
kitano_yuichi
1
410
全社でのソフトウェアサプライチェーン攻撃対策をやってみた with Takumi Guard
z63d
0
240
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
470
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
380
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
340
Mind Mapping
helmedeiros
PRO
1
290
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
190
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
410
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
190
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
240
Fashionably flexible responsive web design (full day workshop)
malarkey
408
67k
Transcript
Laravel 8 注目機能紹介! 株式会社ラクス 久山勝生 2020/11/25 LaravelのLT会 - vol.1
#laravellt
自己紹介 • 久山 勝生(くやま まさき) ◦ 株式会社ラクス ◦ 配配メール/クルメルの運用保守 ◦
PHPer • 好きなもの ◦ ハイボール ◦ ソース味の食べ物 #laravellt @MasaKu_e
Laravel 8 #laravellt
弊社イベント ご参加いただいた皆様 ありがとうございました! https://rakus.connpass.com/event/192297/ #laravellt
Laravel 8 Models Directory Model Factory Classes Migration Squashing Job
Batching Improved Rate Limiting Improved Maintenance Mode Pre-Rendering The Maintenance Mode View Closure Dispatch / Chain Dynamic Blade Components Event Listener Improvements Time Testing Helpers Artisan serve Improvements Routing Namespace Updates https://laravel.com/docs/8.x/releases Laravel Jetstream Tailwind Pagination Views #laravellt
Laravel 8 Laravel Jetstream Models Directory Model Factory Classes Migration
Squashing Job Batching Improved Rate Limiting Improved Maintenance Mode Pre-Rendering The Maintenance Mode View Closure Dispatch / Chain Dynamic Blade Components Event Listener Improvements Time Testing Helpers Artisan serve Improvements Tailwind Pagination Views Routing Namespace Updates https://laravel.com/docs/8.x/releases #laravellt
Laravel Jetstream • 一番の目玉機能 ◦ make:auth などで実現できていた認証機能の強化 ▪ メール認証 /
二要素認証など ◦ フロントエンドスタックを刷新 ▪ Livewire / Inertia.js • フロントエンド開発の経験が少なくてもモダンなUI開発が可能 #laravellt
Inertia.js ちょっとだけ紹介 <?php namespace App\Http\Controllers ; class UserController extends Controller
{ public function index() { return Inertia::render('user/index', ['users' => User::all()]); } } app/Http/Controllers/UserController.php #laravellt
Inertia.js ちょっとだけ紹介 <template> <h1>ユーザ一覧</h1> <ul> <li v-for="user in users" :key="user.id">{{
user.name }}</li> </ul> </template> <script> export default { props:{ users: { type: Array, } } } </script> resources/js/Pages/user/index.vue 使わない 使う #laravellt
Tailwind Pagination Views • デフォルトのCSSがTailwindに変更 ◦ Bootstrap3, 4 も引き続き利用可能
• Tailwind の特徴 ◦ カスタマイズ性に富んだ低レベルのCSSフレームワーク ◦ デフォルトのコンポーネントが存在せず、utility classを利用してオリジナルのコ ンポーテントを定義していく ▪ いわゆる「〇〇っぽさ」が出にくい #laravellt
Tailwind ちょっとだけ紹介 <button type="button” class="btn btn-primary"> Button Text </button>
<button class="f6 br3 ph3 pv2 white bg-purple hover-bg-light-purple"> Button Text </button> Bootstorap Tailwind #laravellt
Migration Squashing • マイグレーションファイルをまとめる機能 ◦ スキーマ構築の時間を短縮 ▪ テスト時などに便利 •
処理の流れ ◦ php artisan schema:dump を実行 ◦ マイグレーションファイルから dumpファイルを生成 ◦ php artisan migrate を実行すると dumpファイルから restore ※Laravelの実行環境をDockerコンテナ上に作成している場合 同じコンテナ内にDBが入っていないとdumpが実行できない #laravellt
まとめ • 14個の 新機能/仕様変更 がリリース ◦ Laravel Jetstream ◦ Tailwind
Pagination Views ◦ Migration Squashing • LTSではないため移行しづらいが便利機能が多い ◦ サンプルを参考に機能を確認しておくことが重要? #laravellt
次回イベント 環境構築でお困りの方も 是非お越しください! https://rakus.connpass.com/event/195001/ #laravellt
ご清聴ありがとうございました! #laravellt
参考サイト [1] Laravel 8 Release Notes https://laravel.com/docs/8.x/releases [2]
PHPerによるPHPerのための「Laravel8を中心に語り合う」TechCafe/Show note https://hackmd.io/@S051_ovFTzmLW3plu6ehiw/BkiwDx9IP [3] Laravel Jetstream https://jetstream.laravel.com/1.x/introduction.html [4] Laravel Jetstream入門 Inertia.js編 https://reffect.co.jp/laravel/laravel-jetstream-inertia-js [5] 初めてでもわかるTailwindcss入門(1)基礎編 https://reffect.co.jp/html/tailwindcss-for-beginners [6] CSS Utility Classes and "Separation of Concerns" https://adamwathan.me/css-utility-classes-and-separation-of-concerns/ #laravellt