1
Inside the route file the following code works normally:
QrCode::format('png')
->size(400)
->color(0,0,0,100)
->backgroundColor(255,255,255,0)
->margin(20)
->generate('google.com', public_path('images\qrcode7.png'));
But while trying to run inside the file RegisterController
same command, error appears:
Class 'App\Http\Controllers\Auth\QrCode' not found
Any suggestions how to solve it? Inside the route file I didn’t import anything, and inside the controller
also didn’t find any file that I import worked.
The library I’m using is the Simple Qrcode