Closed thewebartisan7 closed 5 years ago
Socialite is installed and I add in config/app.php the Service Provider and as alias the Facade, like below:
'providers' => [ Laravel\Socialite\SocialiteServiceProvider::class, ], 'aliases' => [ 'Socialite' => Laravel\Socialite\Facades\Socialite::class ],
But should be already loded the provider and alias since it's in composer?
"laravel": { "providers": [ "Laravel\\Socialite\\SocialiteServiceProvider" ], "aliases": { "Socialite": "Laravel\\Socialite\\Facades\\Socialite" } }
I try also without including in config/app.php but it's the same.
In controller I add use Socialite;
use Socialite;
I try also composer dump-autoload and php artisan cache:clear but nothing, the class suddenly Socialite is not found.
composer dump-autoload
artisan cache:clear
Even in cached file I see that it's correctly included the provider and facade:
What I missing?
Thank You!
Fixed! It was something wrong in my application.
How did you fix that?
Still interested how this could be solved?
same issue
I have same problem (2024), anyone else?
Description:
Socialite is installed and I add in config/app.php the Service Provider and as alias the Facade, like below:
But should be already loded the provider and alias since it's in composer?
I try also without including in config/app.php but it's the same.
In controller I add
use Socialite;
I try also
composer dump-autoload
and phpartisan cache:clear
but nothing, the class suddenly Socialite is not found.Even in cached file I see that it's correctly included the provider and facade:
What I missing?
Thank You!