Support the ongoing development of Laravel.io →
posted 4 years ago
Laravel
Last updated 2 years ago.
0

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

0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

RF sunilrazorpay Joined 3 Apr 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.