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

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.
主站蜘蛛池模板: 尚志市| 宝丰县| 荆门市| 高要市| 平泉县| 安岳县| 天镇县| 靖江市| 安阳市| 远安县| 榕江县| 西安市| 邯郸县| 永泰县| 泽库县| 舟山市| 新建县| 平度市| 株洲市| 驻马店市| 大理市| 喜德县| 钟山县| 泸定县| 肥城市| 罗源县| 时尚| 和静县| 台东市| 阳东县| 万宁市| 武义县| 莎车县| 西平县| 家居| 南阳市| 沽源县| 长顺县| 昆山市| 海南省| 若羌县|