mirror of
https://github.com/antonioribeiro/google2fa.git
synced 2026-04-26 16:45:49 +03:00
[GH-ISSUE #58] Not found class PragmaRX\Google2FA\Google2FA #496
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/google2fa#496
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sozonets on GitHub (Mar 29, 2017).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/58
Class 'PragmaRX\Google2FA\Google2FA' not found
How to fix for Laravel 5.3 ?
@yurik94 commented on GitHub (Jun 21, 2017):
How did you fix? same error :(
@sozonets commented on GitHub (Jun 21, 2017):
composer updatefix itor
Completely reload the entire project on your server
@yurik94 commented on GitHub (Jun 21, 2017):
something has been changed in the repo name I suspect, and in the namespaces too:
Correct usage on the Laravel bridge (5.4), /config/app.php:
PragmaRX\Google2FALaravel\ServiceProvider::class,
'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
@antonioribeiro commented on GitHub (Jun 21, 2017):
Sorry about that. That's basically why I tagged a new major. And the docs were wrong, I just fix this info in the bridge package.
@yurik94 commented on GitHub (Jun 21, 2017):
Nevermind, I've followed this
https://www.sitepoint.com/2fa-in-laravel-with-google-authenticator-get-secure/
and I just finished the 2FA 👍
Anyway there's something that should be updated on that tutorial but I can confirm it's working on 5.4.
P.S. I'm working on Php 7.1 and there are some non-static methods called statically 😄
@henriquepalazzo commented on GitHub (Nov 13, 2017):
Getting the same error here with Laravel 5.5: Class pragmarx.google2fa does not exist. I already tried composer update and many other things, still not working.
@antonioribeiro commented on GitHub (Nov 13, 2017):
@yurik94 , if you look at the class source: https://github.com/antonioribeiro/google2fa/blob/master/src/Google2FA.php, you'll see there are no static methods, so this must be a Laravel Facade thing or something you are doing.
@antonioribeiro commented on GitHub (Nov 13, 2017):
@henriquepalazzo, I can confirm it works fine on Laravel 5.5. Usually this happens when the service provider was not registered. But you may be using the wrong package, this is the Laravel version of this package: https://github.com/antonioribeiro/google2fa-laravel