Laravel Class 'Socialite' not found -
using composer, have installed socialite package local machine. works well. upload vendor/laravel/socialite
directory server. on server, in composer.json
added line -
"laravel/socialite": "^2.0"
also, in config/app.php make below changes -
in provider section add line -
laravel\socialite\socialiteserviceprovider::class,
in aliases section add line -
'socialite' => laravel\socialite\facades\socialite::class,
then, per documentation add below code in config/services.php file -
'facebook' => [ 'client_id' => '{{my_client_id}}', 'client_secret' => '{{my_secret_key}}', 'redirect' => 'http://mydomain/public/callback', ],
the controller, using has included use socialite;
@ top.
bur now, gives me error class 'socialite' not found
on server. works fine on local machine. missing upload on server?
your appreciated.
thanks.
you need dump autoload everytime make changes in composer.json, composer dump-auto
Comments
Post a Comment