Jan 7, 2025
0
Level 27
Quick way to determine who called `abort()`?
I often run into 403 and 401 with no idea where it was called, has anyone found a quick way to trace backwards without going into Laravel files?
- I tried to
dd(debug_backtrace())and throwing an Exception, both did not showed the caller - Only putting a breakpoint on
abort()inlaravel/framework/src/Illuminate/Foundation/Application.phpwas I able to pinpoint the caller
Is there a better way?
Please or to participate in this conversation.