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 建置官網】讓我們一起走進跨界學習的紅鶴森林
Search
Star Rocket
March 27, 2019
Programming
1
68
【初次動手就用最優雅套件 Laravel 建置官網】讓我們一起走進跨界學習的紅鶴森林
【初次動手就用最優雅套件 Laravel 建置官網】讓我們一起走進跨界學習的紅鶴森林
Star Rocket
March 27, 2019
Tweet
Share
More Decks by Star Rocket
See All by Star Rocket
PHP 也有 Day #51:高效能框架的曙光 - 以 Laravel 經驗開發 Hyperf 應用
starrocket
1
230
PHP 也有 Day #50:處理前人的遺產—聊 legacy code
starrocket
0
58
PHP 也有 Day #49:邊緣人救星!用 Laravel 打造私人定製的聊天機器人
starrocket
0
320
PHP 也有 Day #48:我是誰?我在哪?
starrocket
0
47
PHP 也有 Day #48:我是誰?我在哪?
starrocket
0
43
API-整合測試
starrocket
0
89
How we talk about Engineering Culture at Phase
starrocket
0
29
PHP 也有 Day #47:打造好維護的 PHP 程式碼專案
starrocket
0
220
全端起手就用 Laravel+Vue.js 現場實作給你看
starrocket
0
170
Other Decks in Programming
See All in Programming
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
250
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.2k
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
300
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
340
cmp.Or に感動した
otakakot
3
210
C++でシェーダを書く
fadis
6
4.1k
Ethereum_.pdf
nekomatu
0
470
Pinia Colada が実現するスマートな非同期処理
naokihaba
4
230
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Jakarta EE meets AI
ivargrimstad
0
710
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
Featured
See All Featured
Visualization
eitanlees
145
15k
The Invisible Side of Design
smashingmag
298
50k
Adopting Sorbet at Scale
ufuk
73
9.1k
Fireside Chat
paigeccino
34
3k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
GraphQLとの向き合い方2022年版
quramy
43
13k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
The Pragmatic Product Professional
lauravandoore
31
6.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Transcript
6QDG[
F B ⃮㤐䒒嬡䥥掄䴏苌 㤐䧙⋂䲲㕡⛐⇆年䠭㧕副痙苌 㢝㤐桬瘟⹙劳珯 Tobey ⢏俵䥥⛋㤐㏔缷㽛⠰欭苌♜㏰⯷桬界Ⅷ粕ㇰℬ㢦珯
嬭斘⇢╤▊䛧 嬭斘⇢╤ ⓾楯テ粕ㄌ 砒䷐テ粕ㄌ 砒䷐テ粕ㄌ
粹粹 ≁䎛↡熝缙嶋聅獑
None
≁惀.CTCIKTNU 㤐㋯熝㧪⃡綤䥥獑 䎛↡熝 ⚤▁.CTCIKTNU獑
⓾禈≧ ┑徕⻗⨑ i g 1 1 2 g 8 ➇玐㧪聅䴏䰟劅獑
㜎島痕猳 痕㤐傎⼝ⰈⰈ⠫ ⚀≧ 㓲⅀⛐⇆䡗㊸テ g . G e l a 0 G L e l
⻇ 㽳↛㏔綌≁䥥⻰㠦Ⅼ
None
ứԛ⃪ἡᅟ -BSBHJSMTᅟ ứԛ⃪ ൬֞߭∣
≾Ṇứള喁൙ਔĤ -BSBHJSMTᅟ
Route Control ler View -BSBWFM ⃪ളଁ䵆௹ 1 3 12 3
12 32 32 2 2 4 5 1. 1 1 2 3 4 5
┆膾㓲 ≁㽳㕴羝㡺⠫
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7
6 89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8
-BSBWFM ⊷ਘὼἧ )) ) ( Model
↛⺗㧪嶋痙⢯獑
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7
6 89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8
3PVUF . /
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7
6 89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8
$POUSPMMFS Laragirls/app/Http/Controllers/NewsController.php
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7
6 89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8
.PEFM Laragirls/app/News.php
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7 6
89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8
$POUSPMMFS Laragirls/app/Http/Controllers/NewsController.php
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7 6
89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8
7JFX Laragirls/resources/views/news/index.blade.php
Request Lifecycle u d d u b u g u
u e
Ⰸ⺗ 肪⨉↛⢯獑
None
㓲㏔缙玐 俜糺亂䛧⟂獌⛐⇆亂瓴揉▀叞 ⃡緈亂䛧⟂獌⛋叞亂磷㢑䁩㍐
%! $ (& , ) ) *# "+
')
! !
巼聅熝⯻ ⠫缙㋯熝洸帪獑
A B & 1 ( . 2) M
ứԛ⃪ἡᅟ -BSBHJSMTᅟ ứԛ⃪ ൬֞߭∣
.JEEMFXBSFᇏࢺṧ -BSBHJSMTᅟ ứԛ⃪ ൬֞߭∣ App Middleware
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7 6
89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7 6
89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8 Before After
Laravel Request Lifecycle Application : Controllers, Models, Views, etc. Request
Route Before Middlew are App After Middlew are Respon se
Route Control ler View Model -BSBWFM ⃪ളଁ䵆௹ 8 7 6
89 6 89 4 9 4 9 C 4397422 7 4397422 7 4 2 4 2 C 4 2 4 2 C 4397422 7 .1 85438 1 2 3 4 5 6 7 9 8 Before After
≧玐 䶺⨉ド↛䥥綒呡⃫ ≠䠉ⰸ⇗猳
spatie/laravel-permission / - / H /- / - / G
- /
䩏⤳ .JEEMFXBSF / ..
Ⴈ .JEEMFXBSF . . / . ./ / . .
痙㮳㮳 㓱⇜甒Ⅷ
6JCPM[QW