laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.87k stars 658 forks source link

How to throw the job into horizon #1446

Closed lengjunbin-trec closed 6 months ago

lengjunbin-trec commented 6 months ago

I will explain why I am asking this question. I have a laravel project with horizon.and this laravel framework has some api. when a new api request coming.laravel need load all service provider file.it need a lot of time. so I decide to create another project Lumen.because Lumen faster than Laravel. new api call Lumen.and Lumen throw the job into laravel horizon .then laravel deal with the api request.

now my question is how Lumen throw the job into laravel horizon.Can anyone help me?

driesvints commented 6 months ago

Our first party packages aren't compatible with Lumen: https://lumen.laravel.com/docs/11.x#compatibility

Screenshot 2024-05-16 at 09 44 27

We also very much recommend stepping away from Lumen and using Laravel instead. We no longer recommend new apps on Lumen. https://laravelshift.com/convert-lumen-to-laravel