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
1.1k
0
Share
MVC構造について
(株)ロジカルスタジオ勉強会「ゆるっとLaravel『明日から使えるLaravelの話』」における発表資料
ls_pr
November 26, 2019
More Decks by ls_pr
See All by ls_pr
戦場で生き抜く 炎上案件の耐え方
ls_pr
0
230
自作PCのすすめ
ls_pr
0
160
ツボを押さえたWFの作り方
ls_pr
0
150
Linuxのちょこっと調べ
ls_pr
0
150
色々な色の話~今日から使える簡単配色テクニック3つ~
ls_pr
0
260
ゼロから始めるフロントエンドモジュール開発についてあれこれ
ls_pr
0
140
ejsのすすめ
ls_pr
0
180
JSにおける正規表現
ls_pr
0
160
Vue.jsの機能を使って色々作ってみた
ls_pr
0
470
Other Decks in Programming
See All in Programming
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
220
「速くなった気がする」をデータで疑う
senleaf24
0
110
AI Assistants for YourAngular Solutions @Angular Graz, March 2026
manfredsteyer
PRO
0
130
Tamach-sre-3_ANDPAD-shimaison93
mane12yurks38
0
220
モダンOBSプラグイン開発
umireon
0
190
Nuxt Server Components
wattanx
0
220
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
170
飯MCP
yusukebe
0
440
Claude Code Skill入門
mayahoney
0
450
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
380
Redox OS でのネームスペース管理と chroot の実現
isanethen
0
480
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
8
3.7k
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
100
6k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
350
Large-scale JavaScript Application Architecture
addyosmani
515
110k
4 Signs Your Business is Dying
shpigford
187
22k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Embracing the Ebb and Flow
colly
88
5k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
93
Become a Pro
speakerdeck
PRO
31
5.9k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
500
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
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