Laravel - Error Handling - The Report Helper

Sometimes you may need to report an exception but continue handling the current request. The report helper function allows you to quickly report an exception via the exception handler without rendering an error page to the user:

    public function isValid($value)
        try {
            // Validate the value...
        } catch (Throwable $e) {
            return false;