Kyon147 / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
353 stars 102 forks source link

Error dispatch job in laravel 10 - Call to undefined method dispatchNow() #125

Closed nonghinh closed 1 year ago

nonghinh commented 1 year ago

In Laravel 10.x, the dispathNow method has been replaced by the dispatchSync method. Please update the package to remove the error "Call to undefined methodApp\Jobs\AfterAuthorizeJob::dispatchNow()". The error only occurs when I configure the execution of jobs with "[inline => true]"

Kyon147 commented 1 year ago

There is already a PR for it #124 - feel free to give that branch a test.

Kyon147 commented 1 year ago

I've created a new release which should fix this issue https://github.com/Kyon147/laravel-shopify/releases/tag/v18.0.1

nonghinh commented 1 year ago

Thank you @Kyon147

Kyon147 commented 1 year ago

@nonghinh no problem, can you close the ticket once resolved.