Laravel via NGINX
Inspired by the CodeIgniter framework, Laravel is a modern PHP framework based on the MVC pattern. Focusing on elegant code and modular packaging, Laravel is an increasingly popular choice for PHP developers who want to develop custom web applications.
In this recipe, we'll go through the code required to publish your Laravel application using NGINX.

Getting ready
This recipe assumes you already have a working Laravel installation as well as a working PHP-FPM installation. The following configuration has been tested with Laravel 5.2.
How to do it...
As Laravel is PHP based, we'll be using PHP-FPM to compile the PHP code and present to NGINX. If this is new to you, it's worth reading through Chapter 2, Common PHP Scenarios which covers some of the other PHP scenarios and the PHP-FPM configuration.
To get going, we'll create a separate virtual configuration file for Laravel:
server { listen 80; server_name laravel.nginxcookbook.com; access_log /var/log/nginx...