When I throw new Exception('test exception');
from a class the bug is passed to my rollbar dashboard. But when I cause a Laravel error, something like:
"syntax error, unexpected '$user' (T_VARIABLE)"
it doesn't get passed.
I have it working perfectly on another project and it sends all bugs but that is in Laravel 5.0. I then tried Laravel Rollbar by jenssegers, thinking it would be more suited for Laravel 5.1 but that behaves the exact same way, only passing exceptions that I explicitly throw.
Try removing any third party packages that would interfere with the Handler class in the exceptions directory. The likes of filp/whoops
could be catching the exception first.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.