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

ainsley_clark's avatar

Laravel - Extremley slow when there's an error?

Just wondering if anyone else has experienced extremley slow response times when there's an error in Laravel? It took just shy of 30 seconds to produce this page.

image

0 likes
6 replies
siangboon's avatar

Why you have to purposely do that?

I'm not sure what exactly running behind this AppServiceProvider but i believe that there are ton of calls will be trigger in this boot...

fylzero's avatar

@ainsley_clark I kind of am agreeing with @siangboon's position on this... have you tested failures elsewhere to determine if this just takes a while because it is in the AppServiceProvider boot method?

This feels potentially like a perceived problem, not a measurable one.

ainsley_clark's avatar

Thanks for your replies.

@sinnbeck I will see if this helps.

@siangboon this was just a demonstration. It happens with any error, literally anything.

Perhaps its something to do with homestead?

ainsley_clark's avatar

@fylzero thanks for your reply.

If I create a typo in a use statement its 20 seconds. Or miss spell a function name it's way over 30.

The problem is not just limited to the AppServiceProvider. It was just a crude example.

ainsley_clark's avatar

@sinnbeck thank you so much, its unrecognisably quicker after that quick fix.

If anyone else is facing this issue:

  • php artisan vendor:publish --provider="Facade\Ignition\IgnitionServiceProvider" --tag="flare-config"
  • Set app/config/flare.php - 'collect_git_information' => false,
2 likes

Please or to participate in this conversation.