DEV Community

Dimitrios Desyllas
Dimitrios Desyllas

Posted on

How I can pipeline the incomming results in Laravel so I can process them whilst I read them?

May I have some help with this?

I need to run a query in a console command:


use Illuminate\Console\Command
use Illuminate\Support\Facades\DB;

use App\Jobs\SendVaccationEmail;

class ProcessDbResult extends Command
{
  protected $signature = "process:entries";
  protected $description = "Bulk Process of results";

   public function handle() 
   {
     $sql = "
        SELECT DISTINCT 
             user_id 
        from 
         (Select user_id from travels where destination =

Latest comments (0)