Closed Azlan-saja closed 3 months ago
This should work:
namespace App\Providers;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('google-one-tap', \SocialiteProviders\GoogleOneTap\Provider::class);
});
}
}
Also be sure to clear the cache.
php artisan cache:clear
// app/Providers/EventServiceProvider // Laravel10
// App\Providers; // Laravel11 // Not Working // Error : Driver google-one-tap is not registered
// So, what is the solution?