laravel-spark-google2fa | Google Authenticator support for Laravel Spark
kandi X-RAY | laravel-spark-google2fa Summary
kandi X-RAY | laravel-spark-google2fa Summary
Google Authenticator support for Laravel Spark
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register the provider .
- Enable Two Factor Authentication .
- Bootstrap the application .
- Generate the QR code .
- Define the publishing .
- Build the table schema .
- Define the routes .
- Get QR code .
- Deletes all users .
laravel-spark-google2fa Key Features
laravel-spark-google2fa Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-spark-google2fa
QUESTION
I recently updated a Laravel/Spark web application to the latest version of Spark (v9.*
) via composer
. Another package I use is Laravel-Spark-Google2FA which I also updated from v1.*
to v2.*
.
Setup:
The laravel-spark-google2fa package has a Laravel service provider class that resides in /project-root/laravel/spark/src/Providers/Google2FAServiceProvider.php
In Laravel we specify this in /project-root/laravel/config/app.php
with the following line in the providers
array:
Laravel\Spark\Providers\Google2FAServiceProvider::class,
In composer.json
we have:
ANSWER
Answered 2019-Oct-21 at 22:24I was unaware of the bootstrap cache. The bootstrap cache file contained a reference to the Google2FAServiceProvider
service provider class which after various package updates and what not was no longer present.
Running commands like php artisan config:clear
, php artisan cache:clear
, and composer dump-autoload
did not clear this cache. In the end, I simply removed the offending file:
filename: services.php
location: /laravel/bootstrap/cache/services.php
config.php
, in the same location, can also contain such references.
Note: I used the find feature in VSCode to look for references to this service provider and it did not find this one because the bootstrap cache is gitignored.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-spark-google2fa
php artisan vendor:publish --provider="Eusebiu\LaravelSparkGoogle2FA\Google2FAServiceProvider" --force
php artisan migrate
npm run dev
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page