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
44
PHP 也有 Day #48:我是誰?我在哪?
starrocket
0
40
API-整合測試
starrocket
0
86
How we talk about Engineering Culture at Phase
starrocket
0
29
PHP 也有 Day #47:打造好維護的 PHP 程式碼專案
starrocket
0
210
全端起手就用 Laravel+Vue.js 現場實作給你看
starrocket
0
160
Other Decks in Programming
See All in Programming
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
480
Macとオーディオ再生 2024/11/02
yusukeito
0
210
Kotlin2でdataクラスの copyメソッドを禁止する/Data class copy function to have the same visibility as constructor
eichisanden
1
140
Tuning GraphQL on Rails
pyama86
2
1k
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
3
400
Why Spring Matters to Jakarta EE - and Vice Versa
ivargrimstad
0
1k
Amazon Neptuneで始めてみるグラフDB-OpenSearchによるグラフの全文検索-
satoshi256kbyte
4
330
Realtime API 入門
riofujimon
0
110
推し活としてのrails new/oshikatsu_ha_iizo
sakahukamaki
3
1.7k
約9000個の自動テストの 時間を50分->10分に短縮 Flakyテストを1%以下に抑えた話
hatsu38
23
11k
CSC305 Lecture 13
javiergs
PRO
0
130
Piniaの現状と今後
waka292
5
1.5k
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
The Cult of Friendly URLs
andyhume
78
6k
Designing on Purpose - Digital PM Summit 2013
jponch
115
6.9k
KATA
mclloyd
29
13k
Designing the Hi-DPI Web
ddemaree
280
34k
Gamification - CAS2011
davidbonilla
80
5k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.8k
Testing 201, or: Great Expectations
jmmastey
38
7k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Making Projects Easy
brettharned
115
5.9k
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