laravel/pail

report() helper not picked up by pail

jonothedev opened this issue · 1 comments

Laravel Package Version

1.0.0-beta.1

Laravel Version

10.26.2

PHP Version

8.2.11

Database Driver & Version

MySQL 5.7.39 using MAMP Pro 6

Description

Pretty cool package, thanks for your hard work on this, however i seem to maybe come across an issue!

When using Laravel's report() helper as below.

report('message');

Using php artisan pail -vv does not display the exception when tailing the logs.

Steps To Reproduce

Add a route so the report helper is ran.

Route::get('report-helper-test', function(){
       report('message');
   });

Run php artisan pail -vv in your terminal.

Then open the /route report-helper-test

The exception logs fine within laravels error logs.

[2023-10-08 10:11:02] local.ERROR: message {"userId":1,"exception":"[object] (Exception(code: 0): message at /Users/jonathan/Code/..../vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:663)
[stacktrace]
#0 /Users/jonathan/Code/.../routes/booking/tenant.php(9): report('message')

However, the logs being tailed do not pick up this exception.

Can you check if this is something that also happens on a fresh Laravel application? Because this issue is not happening in our test suite: #9.