prepare laravel for production code example
Example 1: laravel deployment
composer install --optimize-autoloader --no-dev
Example 2: laravel deployment
php artisan optimize
composer install --optimize-autoloader --no-dev
php artisan optimize