Closed
Description
HI,
Thanks for the awesome plugin.
i am using below two lines to return all printers in my controller file.
$printers = Printing::printers();
return $printers;
It does not show anything.
Then i find rawlink/laravel-printing/src/printing.php file where i pass the $e. Then i get the error [{"statusCode":"400","message":"HTTP Error (400): 'offset' not supported"}]
public function printers(): Collection
{
try {
$printers = $this->driver->printers();
} catch (\Throwable $e) {
$printers = collect([$e]);
}
$this->resetDriver();
return $printers;
}
Am i doing something wrong?