report

The report function will report an exception using your exception handler:
<?php report($e);
<?php             return $handler($batch, $e);

        } catch (Throwable $e) {

            if (function_exists('report')) {

                report($e);

            }

        }

    }
<?php                 return $handler($batch);

            } catch (Throwable $e) {

                if (function_exists('report')) {

                    report($e);

                }

            }

        });
<?php     function report_if($boolean, $exception)

    {

        if ($boolean) {

            report($exception);

        }

    }

}
<?php     function report_unless($boolean, $exception)

    {

        if (! $boolean) {

            report($exception);

        }

    }

}
<?php             return $callback();

        } catch (Throwable $e) {

            if (value($report, $e)) {

                report($e);

            }



            return value($rescue, $e);
<?php             $exception = new Exception("Unable to locate Mix file: {$path}.");



            if (! app('config')->get('app.debug')) {

                report($exception);



                return $path;

            } else {
<?php                 if ($e instanceof ModelNotFoundException) {

                    if (function_exists('report')) {

                        report($e);

                    }



                    return null;
<?php             }



            if ($this->reportCallback && call_user_func($this->reportCallback, $throwable)) {

                report($throwable);

            }



            $this->limiter->hit($jobKey, $this->decaySeconds);
<?php             }



            if ($this->reportCallback && call_user_func($this->reportCallback, $throwable)) {

                report($throwable);

            }



            $this->limiter->acquire();
<?php                 'https://api.pwnedpasswords.com/range/'.$hashPrefix

            );

        } catch (Exception $e) {

            report($e);

        }



        $body = (isset($response) && $response->successful())
<?php         Exceptions::fake();



        Exceptions::report(new RuntimeException('test 1'));

        report(new RuntimeException('test 2'));



        Exceptions::assertReported(RuntimeException::class);

        Exceptions::assertReported(fn (RuntimeException $e) => $e->getMessage() === 'test 1');
<?php         Exceptions::fake();



        Exceptions::report(new RuntimeException('test 1'));

        report(new RuntimeException('test 2'));



        Exceptions::assertReportedCount(2);

    }
<?php         Exceptions::fake();



        Exceptions::report(new RuntimeException('test 1'));

        report(new RuntimeException('test 2'));



        $this->expectException(ExpectationFailedException::class);

        $this->expectExceptionMessage('The total number of exceptions reported was 2 instead of 1.');
<?php         ]);



        Exceptions::report(new RuntimeException('test 1'));

        report(new RuntimeException('test 2'));

        report(new InvalidArgumentException('test 3'));



        Exceptions::assertReported(RuntimeException::class);
<?php         Exceptions::report(new RuntimeException('test 1'));

        report(new RuntimeException('test 2'));

        report(new InvalidArgumentException('test 3'));



        Exceptions::assertReported(RuntimeException::class);

        Exceptions::assertReported(fn (RuntimeException $e) => $e->getMessage() === 'test 1');