Laravel
A collection of useful commands and knowledge for Laravel projects.
Deployment
Section titled “Deployment”First, install composer packages:
composer install --optimize-autoloader --no-devOr, if updating a previous project:
composer update --optimize-autoloaderNow, cache all that can be:
php artisan config:cache && php artisan event:cache && php artisan route:cache && php artisan view:cacheNext, optimise Laravel:
php artisan optimizeFinally, build Vite assets:
npm run build