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
210
自作PCのすすめ
ls_pr
0
140
ツボを押さえたWFの作り方
ls_pr
0
130
Linuxのちょこっと調べ
ls_pr
0
130
色々な色の話~今日から使える簡単配色テクニック3つ~
ls_pr
0
240
ゼロから始めるフロントエンドモジュール開発についてあれこれ
ls_pr
0
120
ejsのすすめ
ls_pr
0
160
JSにおける正規表現
ls_pr
0
130
Vue.jsの機能を使って色々作ってみた
ls_pr
0
420
Other Decks in Programming
See All in Programming
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
250
CSC305 Lecture 05
javiergs
PRO
0
210
コードとあなたと私の距離 / The Distance Between Code, You, and I
hiro_y
0
130
What's new in Spring Modulith?
olivergierke
1
140
Devvox Belgium - Agentic AI Patterns
kdubois
1
110
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
240
uniqueパッケージの内部実装を支えるweak pointerの話
magavel
0
980
Go言語の特性を活かした公式MCP SDKの設計
hond0413
1
230
組込みだけじゃない!TinyGo で始める無料クラウド開発入門
otakakot
0
230
CSC509 Lecture 06
javiergs
PRO
0
260
Introducing ReActionView: A new ActionView-Compatible ERB Engine @ Kaigi on Rails 2025, Tokyo, Japan
marcoroth
3
1k
チームの境界をブチ抜いていけ
tokai235
0
160
Featured
See All Featured
KATA
mclloyd
32
15k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
900
Code Reviewing Like a Champion
maltzj
526
40k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Building Adaptive Systems
keathley
43
2.8k
It's Worth the Effort
3n
187
28k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Speed Design
sergeychernyshev
32
1.2k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.7k
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