Category: artisan

Get Artisan::output() while command still running

I have a route /sync which it calls an Artisan::call(‘product:sync’); Route::get(‘/sync’, function (Request $request) { Artisan::call(‘product:sync’); return (Artisan::output()); }); It shows output but after command finished. Now since command takes long to finish I need to display $this->info(‘Welcome to Product…