[GH-ISSUE #61] Class 'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider' not found #498

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

Originally created by @06chaynes on GitHub (May 24, 2017).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/61

I am experiencing an issue in Laravel 5.2 after registering this class.

I installed the package with composer, registered it in app.php. I also did a composer dumpautoload and cleared the cache with artisan, but I still get this error each time. I can see the files exist in vendor and all looks good there. I have also manually deleted the cache thinking that could have been the issue but no luck so far.

`# php artisan config:cache

[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider' not found`

Originally created by @06chaynes on GitHub (May 24, 2017). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/61 I am experiencing an issue in Laravel 5.2 after registering this class. I installed the package with composer, registered it in app.php. I also did a composer dumpautoload and cleared the cache with artisan, but I still get this error each time. I can see the files exist in vendor and all looks good there. I have also manually deleted the cache thinking that could have been the issue but no luck so far. `# php artisan config:cache [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'PragmaRX\Google2FA\Vendor\Laravel\ServiceProvider' not found`
kerem closed this issue 2026-03-14 11:58:46 +03:00
Author
Owner

@06chaynes commented on GitHub (May 24, 2017):

I found the issue, for some reason the Vendor dir in the plugin src was missing after install. Ultimately found this to be my error, closing.

<!-- gh-comment-id:303589216 --> @06chaynes commented on GitHub (May 24, 2017): I found the issue, for some reason the Vendor dir in the plugin src was missing after install. Ultimately found this to be my error, closing.
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#498
No description provided.