Essential Commands to run with every laravel application in production

Snippets 1 min read

After Deploying Your Laravel Application to the production server, don't forget to run these commands for better performance:

To cache the config, routes and files run

php artisan optimize


php artisan route:cache
php artisan view:cache
php artisan config:cache

To cache Events:

php artisan event:cache

Happy Coding!

Related Tags

About the Author

Oussama's Profile Picture
Full Stack Web Developer

I'm a full stack web developer and telecommunications engineer who love to share knowledge and build stuff online!


Join Our Newsletter

Subscribe to Our Newsletter and never miss our offers, latest news, Articles, etc.

Our news letter sent once a week, every tuesday.