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

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.
主站蜘蛛池模板: 若羌县| 克什克腾旗| 岳阳县| 天等县| 奉新县| 高密市| 连南| 枞阳县| 昭苏县| 泰兴市| 施甸县| 车致| 南昌市| 工布江达县| 柘荣县| 富顺县| 泊头市| 莱西市| 安陆市| 建瓯市| 邵武市| 南昌市| 宝山区| 十堰市| 耒阳市| 十堰市| 惠安县| 调兵山市| 和林格尔县| 新河县| 微博| 莎车县| 龙里县| 自治县| 临夏市| 信阳市| 北川| 沅陵县| 墨玉县| 长沙市| 陇西县|