L
L
last28282020-06-17 11:15:56
Laravel
last2828, 2020-06-17 11:15:56

Socialite Driver [VKontakte] not supported Laravel. How can this be fixed?

I am using Socialite Providers for VK authorization on Laravel application. And I get the error Socialite Driver [VKontakte] not supported Laravel.

I already went through the whole Internet and nothing but php artisan config:clear and write the name of the provider with lowercase... but alas, this does not help.. Please help me, what could be the problem?

My AppServiceProvider.php

class AppServiceProvider extends ServiceProvider
{
    protected $listen = [
        \SocialiteProviders\Manager\SocialiteWasCalled::class => [
            'SocialiteProviders\\VKontakte\\[email protected]',
        ],
    ];

My controller
public function redirectToProvider()
    {
        return Socialite::driver('vkontakte')->stateless()->redirect();
    }

config->app.php
App\Providers\AppServiceProvider::class,
\SocialiteProviders\Manager\ServiceProvider::class,

aliases
'Socialite' => Laravel\Socialite\Facades\Socialite::class,

Let me reiterate!!!! php artisan config:cache and lowercase don't help in solving the problem!
Thank you for your answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jazzus, 2020-06-17
@last2828

The $listen variable is in the EventServiceProvider and not in the App

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question