[GH-ISSUE #162] Call to undefined method PragmaRX\Google2FA\Google2FA::getQRCodeInline() #540

Closed
opened 2026-03-14 12:09:19 +03:00 by kerem · 3 comments
Owner

Originally created by @Saqib-QA on GitHub (Oct 16, 2020).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/162

I just installed this package on my local, using Laravel 7.28.3
followed the steps described at https://www.sitepoint.com/2fa-in-laravel-with-google-authenticator-get-secure/ and got the following error.
Error
Call to undefined method PragmaRX\Google2FA\Google2FA::getQRCodeInline()
rechecked my code with repo, code is fine.

Originally created by @Saqib-QA on GitHub (Oct 16, 2020). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/162 I just installed this package on my local, using Laravel 7.28.3 followed the steps described at [https://www.sitepoint.com/2fa-in-laravel-with-google-authenticator-get-secure/](https://www.sitepoint.com/2fa-in-laravel-with-google-authenticator-get-secure/) and got the following error. Error Call to undefined method PragmaRX\Google2FA\Google2FA::getQRCodeInline() rechecked my code with repo, code is fine.
kerem closed this issue 2026-03-14 12:09:24 +03:00
Author
Owner

@Saqib-QA commented on GitHub (Oct 16, 2020):

sorry

<!-- gh-comment-id:709960680 --> @Saqib-QA commented on GitHub (Oct 16, 2020): sorry
Author
Owner

@mfn commented on GitHub (Oct 16, 2020):

I think you created this on the wrong repo, I think this should be at https://github.com/antonioribeiro/google2fa-laravel (but it's easy to miss this I guess)

PragmaRX\Google2FA\Google2FA::getQRCodeInline()

This is supposed to reference the Facade alias, see https://github.com/antonioribeiro/google2fa-laravel#use-the-facade

HTH

<!-- gh-comment-id:710108838 --> @mfn commented on GitHub (Oct 16, 2020): I think you created this on the wrong repo, I think this should be at https://github.com/antonioribeiro/google2fa-laravel (but it's easy to miss this I guess) > PragmaRX\Google2FA\Google2FA::getQRCodeInline() This is supposed to reference the Facade alias, see https://github.com/antonioribeiro/google2fa-laravel#use-the-facade HTH
Author
Owner

@antonioribeiro commented on GitHub (Oct 16, 2020):

Yeah, @mfn, got it right, @Saqib-QA , just follow examples on our readme, and you should be fine.

<!-- gh-comment-id:710682978 --> @antonioribeiro commented on GitHub (Oct 16, 2020): Yeah, @mfn, got it right, @Saqib-QA , just follow examples on our readme, and you should be fine.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#540
No description provided.