add: full multi-tenancy control

This commit is contained in:
Cauê Faleiros
2026-02-02 15:31:15 -03:00
commit c6ec92802b
1711 changed files with 258106 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
namespace Webkul\Email\Console\Commands;
use Illuminate\Console\Command;
use Webkul\Email\InboundEmailProcessor\Contracts\InboundEmailProcessor;
class ProcessInboundEmails extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'inbound-emails:process';
/**
* The console command description.
*
* @var string
*/
protected $description = 'This command will process the incoming emails from the mail server.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct(
protected InboundEmailProcessor $inboundEmailProcessor
) {
parent::__construct();
}
/**
* Handle.
*
* @return void
*/
public function handle()
{
$this->info('Processing the incoming emails.');
$this->inboundEmailProcessor->processMessagesFromAllFolders();
$this->info('Incoming emails processed successfully.');
}
}