Class "Opcodes\LogViewer\Level" not found when upgrading from v2 to v3.
sefakor20 opened this issue · 2 comments
I encountered an issue when attempting to upgrade from version 2 to version 3 in my Laravel project. The problem is that the package throws an error related to the class "Opcodes\LogViewer\Level" which is not found after the upgrade.
Environment
- PHP Version: 8.2
- Laravel Version: 10.x
- Operating System: Linux (Ubuntu)
I have followed the upgrade instructions provided by the package documentation
Please is there a way to resolve this issue?
hey @sefakor20 , please see the upgrade guide and remove the unused 'patterns'
option from your config/log-viewer.php
.
With that, also remove any Opcodes\LogViewer\Level
namespace imports as that is no longer used.
Hope this helps! :)
Greetings @arukompas,
Thank you so much for your help in resolving this issue! I appreciate your quick response and effort to fix the problem.
The upgrade to v3 of the package is now working perfectly in my project.