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?
Did you add spatie/ignition instead of spatie/laravel-ignition to composer.json?
@Sinnbeck thanks for the response.
I have following in my composer.json
"spatie/laravel-ignition": "^1.0",
@raihanrazon Can you try clearing the view files php artisan view:clear
@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.
Try to disable Debugbar (github.com/barryvdh/laravel-debugbar) completely or just it's view collectors.
To completely disable Debugbar add below to env:
...
DEBUGBAR_ENABLED=true
...
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 sign in or create an account to participate in this conversation.