coderello / laravel-passport-social-grant

🔒 API authentication via social networks for your Laravel application
https://packagist.org/packages/coderello/laravel-passport-social-grant
MIT License
174 stars 20 forks source link

Is not instantiable while building Laravel\Passport\Http\Controllers\AccessTokenController #12

Closed nahojj closed 5 years ago

nahojj commented 5 years ago

I've got this error

"Target [Coderello\SocialGrant\Resolvers\SocialUserResolverInterface] is not instantiable while building [Laravel\Passport\Http\Controllers\AccessTokenController]."

any clue?

nemwiper commented 5 years ago

Had the same issue, I was forgetting to reference classes in the AppServiceProvider

use App\Resolvers\SocialUserResolver; use Coderello\SocialGrant\Resolvers\SocialUserResolverInterface;

Those two lines of code! Of course you have to specify the right path of your version of the SocialUserResolver in your project!

nahojj commented 5 years ago

@nemwiper It's so funny you said that it was exactly my problem!! I didn't reference the classes in the provider and it makes sense that it will not work then.. So stupid of me, hah! Thanks anyway :)

nemwiper commented 5 years ago

I'm glad that it kinda helped! :D

saadazghour commented 4 years ago

Thanks a lot @nemwiper !!