mxl / laravel-job Goto Github PK
View Code? Open in Web Editor NEWLaravel job tools: dispatch job from command line and more
License: MIT License
Laravel job tools: dispatch job from command line and more
License: MIT License
When I try to run a job with php artisan job:dispatch MyJobName
I get command not found
message, even thou my command is in App\Jobs.
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.
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).
Hi.
Have you tested it on 6.0? If it works, can you please extend compatibility in composer.json?
Thanks!
Hey!
Have you tested it on Laravel 8.x?
If not, i'm gonna help you with that.
Thanks! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.