Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
MVC構造について
Search
ls_pr
November 26, 2019
Programming
1.1k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
MVC構造について
(株)ロジカルスタジオ勉強会「ゆるっとLaravel『明日から使えるLaravelの話』」における発表資料
ls_pr
November 26, 2019
More Decks by ls_pr
See All by ls_pr
戦場で生き抜く 炎上案件の耐え方
ls_pr
0
260
自作PCのすすめ
ls_pr
0
180
ツボを押さえたWFの作り方
ls_pr
0
180
Linuxのちょこっと調べ
ls_pr
0
170
色々な色の話~今日から使える簡単配色テクニック3つ~
ls_pr
0
290
ゼロから始めるフロントエンドモジュール開発についてあれこれ
ls_pr
0
170
ejsのすすめ
ls_pr
0
210
JSにおける正規表現
ls_pr
0
180
Vue.jsの機能を使って色々作ってみた
ls_pr
0
490
Other Decks in Programming
See All in Programming
JRuby: Past, Present, and Future
headius
0
220
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
200
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
110
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
34
15k
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
2.9k
残高管理から台帳サービスへの進化
artoy
0
170
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
160
パーソナライズPodcastを作った話
repunit11
0
120
Jetpack Compose Mechanisms
skydoves
2
510
Simple Storage Service(S3) is not simple
iwatsukayura
0
210
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
1.9k
Embedded Swiftで作る自作USBデバイス によるiOSデバイスの自動テスト / iOSDC Japan 2026 glassfiber
glassfiber
0
300
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
270
Making the Leap to Tech Lead
cromwellryan
135
10k
Exploring anti-patterns in Rails
aemeredith
4
520
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
A designer walks into a library…
pauljervisheath
211
25k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
570
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Designing for Performance
lara
611
70k
Writing Fast Ruby
sferik
630
63k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
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