I was trying to print my receipt in my browser coming from the server. I am using windows server and I able to access it using a virtual box. I tried this code $connector = new WindowsPrintConnector("smb://mycomputername/posprinter");
. It would produce an error since the server is restricted hence it would not see my computer in server's networks. Is there another way to be able to print the receipt from my web browser which my web is deployed in the windows server. In my windows server, I am using XAMPP
Code in my Laravel Controller
$connector = new WindowsPrintConnector("smb://mycomputername/posprinter");
$printer = new Printer($connector);
$printer->text("Hello World\n");
$printer->cut();
$printer->close();