I found that Algolia has problems with Laravel work queues, when switching in filesystem to database to use dispatch () method the search stops working.
My job works fine on localhost
public $pathGaleria;
public $ruta;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($pathGaleria, $ruta)
{
$this->pathGaleria = $pathGaleria;
$this->ruta = $ruta;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
$img = $this->pathGaleria;
$rut = $this->ruta;
//make recibe la imagen
Image::make($img)
->resize(800, null, function ($constraint) {
$constraint->aspectRatio();
})
->save($rut);
}
Does anyone know what I could do to fix this inconvenient functionality? Thanks a lot