reportable(function (Throwable $e) { try { $url = config('stag.backendUrl') . '/dev/reportPhpError'; $headers['secret'] = 'superman'; Http::asForm() ->withHeaders($headers) ->post($url, [ 'data'=>'LHR: '.$e->getMessage(), 'secret' => 'superman' ]) ->json(); }catch(\Exception $e){ //do nothing } }); } }