I am using different laravel applications as microservices.
like laravel app1 (admin) and laravel app2(user).
There are some jobs need to be pushed to queue from laravel app1 and those jobs need to be processed at laravel app2 by pulling it from queue.
both app have different source code.
I am facing a problem that, jobs which need to be processed example ProcessPodcast job need to define inside laravel app2 as it is going to process inside laravel app2.
But as class ProcessPodcast is not available in laravel app1, how can I push this job to a queue(redis I am using here) from laravel app1?
ProcessPodcast::dispatch($payload);
As you can see how the jobs get pushed into queue is as above using job name ProcessPodcast. but ProcessPodcast class is not exist in laravel app1, then how Can send a job request to laravel app2?