matteocontrini I totally forgot that part 🙈
use Illuminate\Database\ConnectionInterface;
use Illuminate\Queue\Failed\DatabaseFailedJobProvider;
// ..
$container->bind('queue.failer', function () use ($container) {
return new DatabaseFailedJobProvider(
$container->make(ConnectionResolverInterface::class),
'flarum',
'queue_failed'
);
});
// ..
This is what I added in my code as well. This could best be an extender.
TLDR this is becoming far more complicated than a simple "create the table"; if I have some time the coming weeks I will create a proper package/extension to add this logic.