-
Book Overview & Buying
-
Table Of Contents
High Performance with Laravel Octane
By :
Now, we will focus on Laravel-specific configurations for the production environment. We will see how to install production PHP/Laravel packages, avoiding installing packages for development and debugging. We will see how to optimize cache configurations, routing settings, and view optimization. Finally, we will see how to inhibit debugging options. Debugging options are very useful in development, but can slow down the execution of the Laravel application in production.
In the composer.json file, two types of packages are listed: require defines the packages for running the application in a production environment, and require-dev defines the packages for running the application in a development environment.
By default, composer installs all the packages from both lists.
If you only want to install the packages from the require list (production), you can use the –-no-dev option while...