- Hands-On Full Stack Web Development with Angular 6 and Laravel 5
- Fernando Monteiro
- 216字
- 2021-07-23 19:18:45
The MVC flow
In a very basic MVC workflow, when a user interacts with our application, the steps in the following screenshot are performed. Imagine a simple web application about books, with a search input field. When the user types a book name and presses Enter, the following flow cycle will occur:

MVC flow
The MVC is represented by the following folders and files:
MVC Architecture Application Path File
Model app/ User.php
View resources/views welcome.blade.php
Controller app/Http/Controllers Auth/AuthController.php
Auth/PasswordController.php
Note that the application models are at the root of the app folder, and the application already has at least one file for MVC implementation.
Also note that the app folder contains all of the core files for our application. The other folders have very intuitive names, such as the following:
Now, let's see how things work in the Laravel structure.
推薦閱讀
- Building E-commerce Sites with VirtueMart Cookbook
- Truffle Quick Start Guide
- 中國互聯(lián)網(wǎng)發(fā)展報告2018
- 圖解手機元器件維修技巧
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實戰(zhàn)
- 光纖通信系統(tǒng)與網(wǎng)絡(luò)(修訂版)
- 園區(qū)網(wǎng)絡(luò)架構(gòu)與技術(shù)
- 華為HCIA-Datacom認(rèn)證指南
- 現(xiàn)場綜合化網(wǎng)絡(luò)運營與維護:運營商數(shù)字化轉(zhuǎn)型技術(shù)與實踐
- 新IP:面向泛在全場景的未來數(shù)據(jù)網(wǎng)絡(luò)
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(理論篇)
- Learning Dart
- Hands-On Full Stack Web Development with Aurelia
- 網(wǎng)絡(luò)信息編輯項目化實操教程(第2版)
- Alfresco Share