Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jeevamugunthan's avatar

Laravel app running slow if I not run artisan:serve

Hi everyone,

My application run in good speed when I use PHP artisan serve command in local, if I go directly to the folder the application is really slow it takes too much time to run JS and CSS files, i'm facing the same problem in my shared hosting.

Anyone, help me to fix this.

Thank you.

0 likes
8 replies
vincent15000's avatar

Note sure, but there is perhaps something to do with php-fpm ?

1 like
vincent15000's avatar

@jeevamugunthan I never had such a problem in production. Have you installed the Laravel debugbar to check is some task takes too much time ?

1 like
jeevamugunthan's avatar

@vincent15000 yes I have the following debugger barryvdh/laravel-debugbar.

I too never had a problem like this, it's a little wired. App is running very fine while run the artisan:serve command.

I'm facing the problem when i access the app directly with url.

1 like
vincent15000's avatar

@jeevamugunthan You necessarily have a difference on the shared webhosting.

Perhaps you need more resources than those provided by the webhosting.

1 like

Please or to participate in this conversation.