SimpleSoftwareIO / simple-qrcode

An easy-to-use PHP QrCode generator with first-party support for Laravel.
https://www.simplesoftware.io/simple-qrcode
MIT License
2.75k stars 397 forks source link

Fails to save to a directory in Laravel 9 #294

Closed Isaac009 closed 11 months ago

Isaac009 commented 12 months ago

Hello, I hope you are in good health.

I am having an issue with the package. Installed version: "simplesoftwareio/simple-qrcode": "~4"

Trying this piece of code from the code example you have provided QrCode::generate('Make me into a QrCode!', '../public/qrcodes/qrcode.svg'); however, I get this error: _ErrorException: file_put_contents(../public/holiday/qrcode.svg): Failed to open stream: No such file or directory in file projectdirectory/vendor/simplesoftwareio/simple-qrcode/src/Generator.php on line 179

Any help will be greatly appreciated.