官术网_书友最值得收藏!

Laravel application life cycle

In a Laravel application, the flow is almost the same as in the previous example, but a little more complex. When the user triggers an event in a browser, the request arrives on a web server (Apache/Nginx), where we have our web application running. So, the server redirects the request into public/index.php, the starting point for the entire framework. In the bootstrap folder, the autoloader.php is started and loads all of the files generated by the composer retrieving an instance to the Laravel application.

Let's look at the following screenshot:

Laravel application cycle

The diagram is complex enough for our first chapter, so we will not get into all of the steps performed by the user's request. Instead, we will go on to another very important feature that is a main concept in Laravel: the Artisan command-line interface (CLI).

You can read more about the request life cycle in Laravel in the official documentation at  https://laravel.com/docs/5.2/lifecycle.
主站蜘蛛池模板: 大港区| 扶绥县| 浦城县| 新建县| 郓城县| 青海省| 金湖县| 陆川县| 综艺| 杂多县| 平乐县| 泗阳县| 新巴尔虎左旗| 壶关县| 平湖市| 四会市| 沾化县| 浑源县| 和龙市| 金平| 壶关县| 翁牛特旗| 尖扎县| 兖州市| 澄江县| 霞浦县| 九寨沟县| 河津市| 晋江市| 章丘市| 平舆县| 佳木斯市| 博兴县| 乡宁县| 荥经县| 马龙县| 信宜市| 林西县| 酒泉市| 洮南市| 崇阳县|