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
MVC構造について
Search
ls_pr
November 26, 2019
Programming
0
1k
MVC構造について
(株)ロジカルスタジオ勉強会「ゆるっとLaravel『明日から使えるLaravelの話』」における発表資料
ls_pr
November 26, 2019
Tweet
Share
More Decks by ls_pr
See All by ls_pr
戦場で生き抜く 炎上案件の耐え方
ls_pr
0
200
自作PCのすすめ
ls_pr
0
130
ツボを押さえたWFの作り方
ls_pr
0
120
Linuxのちょこっと調べ
ls_pr
0
120
色々な色の話~今日から使える簡単配色テクニック3つ~
ls_pr
0
230
ゼロから始めるフロントエンドモジュール開発についてあれこれ
ls_pr
0
120
ejsのすすめ
ls_pr
0
150
JSにおける正規表現
ls_pr
0
130
Vue.jsの機能を使って色々作ってみた
ls_pr
0
420
Other Decks in Programming
See All in Programming
Zendeskのチケットを Amazon Bedrockで 解析した
ryokosuge
3
290
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
21
5.6k
旅行プランAIエージェント開発の裏側
ippo012
2
890
Design Foundational Data Engineering Observability
sucitw
3
190
Testing Trophyは叫ばない
toms74209200
0
840
Azure SRE Agentで運用は楽になるのか?
kkamegawa
0
1.9k
アプリの "かわいい" を支えるアニメーションツールRiveについて
uetyo
0
220
Cache Me If You Can
ryunen344
1
590
AIでLINEスタンプを作ってみた
eycjur
1
230
OSS開発者という働き方
andpad
5
1.7k
私の後悔をAWS DMSで解決した話
hiramax
4
210
[FEConf 2025] 모노레포 절망편, 14개 레포로 부활하기까지 걸린 1년
mmmaxkim
0
1.6k
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
184
22k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
520
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Docker and Python
trallard
45
3.6k
Side Projects
sachag
455
43k
How to train your dragon (web standard)
notwaldorf
96
6.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Making Projects Easy
brettharned
117
6.4k
Code Reviewing Like a Champion
maltzj
525
40k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Transcript
MVC構造について
MVCモデルとは • MVCモデルとはアプリケーションを実装する ためのデザインパターン • 複雑なアプリケーションの処理を3つの役割 に分割することで、実装の見通しがよくなる MVC 役割 Model
データ処理全般。DBへのアクセスに関する処理を行う View 画面表示を担当。ユーザーに表示する情報を出力する Controller 全体の制御を担当。ユーザーからの入力をモデルに渡したり、 モデルから渡されたデータをビューに渡し画面に表示する役 割を担う
Controller MVCモデルの流れ Model View DB リクエスト 入力 レスポンス
Controller /app/Http/Controllers LaravelでのMVC構造 Model /app View /resources/views DB リクエスト 入力
レスポンス ルーティング /routes リクエストの行き先を振り分 ける処理 マイグレーション(テーブルを作成/編集する) /database/migrations シーダー(初期データを投入する) /database/seeds xxx.blade.phpはここ
参考文献 • 【入門編】Laravelのディレクトリ構造とMVCの処 理の流れを理解する https://miyabi-lab.space/blog/22 • LaravelにおけるMVCの基本 https://techblog.roxx.co.jp/entry/2019/04/24/1200 00 •
[Laravel]フレームワークの全体像を大雑把に理 解する https://qiita.com/mgmgOmO/items/19a29bfc7216 11fd21f0