laracoft's avatar
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?

  1. I tried to dd(debug_backtrace()) and throwing an Exception, both did not showed the caller
  2. Only putting a breakpoint on abort() in laravel/framework/src/Illuminate/Foundation/Application.php was I able to pinpoint the caller

Is there a better way?

0 likes
0 replies

Please or to participate in this conversation.