[GH-ISSUE #87] Class 'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider' not found without providers exist #503

Closed
opened 2026-03-14 11:59:27 +03:00 by kerem · 1 comment
Owner

Originally created by @ldt1992 on GitHub (Nov 7, 2017).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/87

Please help me, I have added provider 'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider' and 'Google2FA' => PragmaRX\Google2FA\Vendor\Laravel\Facade::class in alias, but I get this error. I have to tried with "composer update, composer install, php artisan vendor:publish" but it 's not fixed.

Originally created by @ldt1992 on GitHub (Nov 7, 2017). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/87 Please help me, I have added provider 'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider' and 'Google2FA' => PragmaRX\Google2FA\Vendor\Laravel\Facade::class in alias, but I get this error. I have to tried with "composer update, composer install, php artisan vendor:publish" but it 's not fixed.
kerem closed this issue 2026-03-14 11:59:33 +03:00
Author
Owner

@antonioribeiro commented on GitHub (Nov 7, 2017):

This is the PHP (agnostic) repository, Laravel has its own repo. And you should use probably be using:

PragmaRX\Google2FALaravel\ServiceProvider::class,

'Google2FA' => PragmaRX\Google2FALaravel\Facade::class,
<!-- gh-comment-id:342511422 --> @antonioribeiro commented on GitHub (Nov 7, 2017): This is the PHP (agnostic) repository, Laravel has its [own repo](https://github.com/antonioribeiro/google2fa-laravel). And you should use probably be using: ``` php PragmaRX\Google2FALaravel\ServiceProvider::class, 'Google2FA' => PragmaRX\Google2FALaravel\Facade::class, ```
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#503
No description provided.