Maybe you can use custom laravel exception handler app/Exception/Handler.php
.
Something like this:
public function report(Throwable $exception)
{
if ($exception instanceof \Flight\Exception\FlightBookingErrorException) {
// custom code
}
parent::report($exception);
}
https://laravel.com/docs/7.x/errors#report-method
#cmiiw
Thanks for the reply. I want more of a generic approach because there could be many methods which can have sensitive data as function arguments.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community