Coder Social home page Coder Social logo

laravel-job's Issues

Laravel 10 compatibility

When running job:dispatchNow we get an error


   Error 

  Call to undefined function MichaelLedin\LaravelJob\Commands\dispatch_now()

  at vendor/mxl/laravel-job/src/Commands/DispatchNow.php:18
     14▕     }
     15▕ 
     16▕     protected function dispatch($job)
     17▕     {
  ➜  18▕         dispatch_now($job);
     19▕     }
     20▕ }

      +13 vendor frames 

  14  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

I think the function is now called dispatch_sync() in Laravel 10.
Reference: https://laravel.com/docs/10.x/helpers#method-dispatch-sync
You may wrap it in a condition checking the Laravel version to make it compatible with old and new Laravel.

Laravel 11

Greetings. Do you plan to officially support Laravel 11?

Current composer problem:

- Root composer.json requires mxl/laravel-job ^1.4 -> satisfiable by mxl/laravel-job[v1.4.0, v1.5.0].
- mxl/laravel-job[v1.4.0, ..., v1.5.0] require laravel/framework 5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0 -> found laravel/framework[v5.5.0, ..., v5.8.38, v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.16, v10.0.0, ..., v10.48.3] but it conflicts with your root composer.json require (^11.0).

6.0 compatibility

Hi.
Have you tested it on 6.0? If it works, can you please extend compatibility in composer.json?
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.