Deploy in Projects Laravel

0

Hello

After a project is ready in Laravel, which folders and files are really useful for uploading to the server?

Currently I use everything and I find it kind of heavy.

    
asked by anonymous 18.02.2018 / 01:44

1 answer

1

Once your project using Laravel is published in production, some settings are recommended to optimize it.

1.In the .env file, switch to the new environment.

APP_ENV=production

2. Autoloader optimization.

composer install --optimize-autoloader

3. This configuration converts all Laravel configuration files into a single cache file, reducing the number of paths the framework will need to perform, resulting in a shorter execution time.

php artisan config:cache

4. If your project has a large number of routes, it is recommended to use the command below to reduce your routes in a single function next to the cache files, improving site performance.

php artisan route:cache

More information in the documentation: link

    
25.02.2018 / 04:32