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

raihanrazon's avatar

Spatie/laravel-ignition shows shows error in cached view files instead of actual blade file

After upgrading to Laravel 9 I'm no longer able to locate the errors in view blades. Instead, spatie/ignition shows the error in the cached view file.

...\storage\framework\views\7b3324f19e65d6b69ab53d4c1021d2c8d49ded92.php: 64

This way it is rather difficult to find the view blade where something need to be fixed. Is there a workaround to see the actual blade references in the error page?

0 likes
5 replies
Sinnbeck's avatar

Did you add spatie/ignition instead of spatie/laravel-ignition to composer.json?

raihanrazon's avatar

@Sinnbeck thanks for the response. I have following in my composer.json

"spatie/laravel-ignition": "^1.0",
raihanrazon's avatar

@Sinnbeck Sorry it didn't work. Once the view cache has been cleared, it gets regenerated and the error shows in a line of the cached file.

samirmhsnv's avatar

Try to disable Debugbar (github.com/barryvdh/laravel-debugbar) completely or just it's view collectors.

  1. To completely disable Debugbar add below to env:
...
DEBUGBAR_ENABLED=true
...
  1. Or fix this cached view on ignition error pages by disabling view collectors of Debugbar: Add to this to config file: /config/debugbar.php
...
'collectors' => [
    ...
    'views' => false // make this false
    ...
],

Please or to participate in this conversation.