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

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.
主站蜘蛛池模板: 刚察县| 定安县| 平潭县| 丹凤县| 老河口市| 安多县| 汉寿县| 寻乌县| 康保县| 青冈县| 肇源县| 西贡区| 赫章县| 汉川市| 吴桥县| 石屏县| 东至县| 扎兰屯市| 阿拉尔市| 当阳市| 巍山| 浮梁县| 甘德县| 赣榆县| 南川市| 大港区| 延寿县| 色达县| 观塘区| 龙门县| 西宁市| 攀枝花市| 称多县| 黔东| 武义县| 射洪县| 元谋县| 澄江县| 怀仁县| 阿城市| 安图县|