you can reduce a lot of those by running php artisan optimize:clear
php artisan optimize:clear
php artisan permission:cache-reset // for spaty's roles and permissions package
php artisan queue:restart
php artisan optimize
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I got new project that I am working on. Updates and changes are quite frequent.
What artisan commands should I run after pushing the changes to production?
This is what I am doing currently
php artisan route:clear
php artisan view:clear
php artisan permission:cache-reset // for spaty's roles and permissions package
php artisan cache:clear
php artisan queue:restart
php artisan config:clear
php artisan optimize
After that I also restart the supervisor on the server.
Am I doing it right and in correct order? Doses the order matters?
Thank you.
Please or to participate in this conversation.