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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
480
Other Decks in Programming
See All in Programming
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
240
Don't Prompt Harder, Structure Better
kitasuke
0
750
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
240
飯MCP
yusukebe
0
510
iOS機能開発のAI環境と起きた変化
ryunakayama
0
180
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
150
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
3
130
Coding as Prompting Since 2025
ragingwind
0
830
10 Tips of AWS ~Gen AI on AWS~
licux
5
390
Server-Side Kotlin LT大会 vol.18 [Kotlin-lspの最新情報と Neovimのlsp設定例]
yasunori0418
1
140
AI時代のPhpStorm最新事情 #phpcon_odawara
yusuke
0
180
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
790
Featured
See All Featured
Building an army of robots
kneath
306
46k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
First, design no harm
axbom
PRO
2
1.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
BBQ
matthewcrist
89
10k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
64
53k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
400
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
510
So, you think you're a good person
axbom
PRO
2
2k
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