spatie / laravel-ray

Debug with Ray to fix problems faster in Laravel apps
https://myray.app
MIT License
291 stars 64 forks source link

Method showJobs does not exists #188

Closed dela-dels closed 3 years ago

dela-dels commented 3 years ago

Hi Guys, So in the process of trying to test jobs using ray, I came accorss the jobs() or showJobs() methods in the docs. Unfortunately, when I try to use either of them, I get a Method showJobs does not exist. or Method jobs does not exist.

Is there something I am not doing right? I am using the current version of the ray app and updated the laravel-ray packge via composer.

And this is the piece of code I am trying to run:

ray()->showJobs(function () use ($request) {
      ReduceProductStockQuantity::dispatch($request->validated()['invoice_id']);
});

Thank you for an awesome product by the way. 🙏🏽

freekmurze commented 3 years ago

Make sure you install spatie/laravel-ray and not spatie/ray.