Skip to content
Discussion options

You must be logged in to vote

For future reference:

I was able to solve this via this way:

  1. Create a service provider which extends from AggregateServiceProvider:
class JobAggregateServiceProvider  extends AggregateServiceProvider implements DeferrableProvider
{
    /**
     * The provider class names.
     *
     * @var string[]
     */
    protected $providers = [
        BackgroundWorkerServiceProvider::class
    ];
}
  1. Create the BackgroundWorkerServiceProvider class:
class BackgroundWorkerServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('command.queue.work', function ($app) {
            

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Thijmen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant