tobytwigger / laravel-job-status

The only Laravel job debugging tool you'll ever need
https://tobytwigger.github.io/laravel-job-status
MIT License
19 stars 2 forks source link

Unable to send messages using example from docs #50

Closed boujois closed 1 year ago

boujois commented 1 year ago

Describe the bug In the docs it suggests $this->line('some message'); however looking at the demo repo it should be $this->status()->line('some message');

https://tobytwigger.github.io/laravel-job-status/features/messages/

To Reproduce Steps to reproduce the behavior:

In your job handle method place:

$this->line('3/10 emails sent.');

Screenshots Call to undefined method App\Jobs\XXXX::line()

Additional context I might be missing something, as I had issues with vendor:publish, but from looking at the demo repo it looks like a docs issue.

shutupflanders commented 1 year ago

Figured it out from the example repo:

You have to chain it like so: $this->status()->line('This is a test message.');

Documentation needs amending.