SocialiteProviders / Providers

A Collection of Providers for Laravel Socialite
https://socialiteproviders.com
MIT License
502 stars 439 forks source link

Creating Custom Provider issues #666

Closed Grasume closed 3 years ago

Grasume commented 3 years ago

Currently I keep getting The following error Messages. Linking to my GitHub (https://github.com/Grasume/eveonline-socialite-provider) I tossed my code at but will put relevant parts here. image

App\Providers\EventServiceProvider.php SocialiteProviders\Manager\SocialiteWasCalled::class => [ 'SocialiteProviders\Eveonline\EveonlineExtendSocialite@handle' ], App\Http\Controllers\DevLoginController.php `class DevLoginController extends Controller { public function redirectToProvider() { return Socialite::driver('eveonline')->redirect(); }

public function index(){ return config('services.eveonline.org_number'); } } Config\app.php 'providers' => [ SocialiteProviders\Manager\ServiceProvider::class, Laravel\Socialite\SocialiteServiceProvider::class, SocialiteProviders\Generators\GeneratorsServiceProvider::class, ] Code created by running php artisan make:socialite Eveonline --spec=oauth2 --author=YourName --email=your@name.com SocialiteProviders\src\Eveonline\EveonlineExtendSocialite.php class EveonlineExtendSocialite { /**

atymic commented 3 years ago

I checked the repo, are you sure your provider is getting autoloaded? check by using class_exists function in your controller.

Grasume commented 3 years ago

I have ran the class_exists keeps telling me false and tried a couple things but cant seem to get the provider loaded

Grasume commented 3 years ago

Closing as solved the issue