| Package Data | |
|---|---|
| Maintainer Username: | m1guelpf | 
| Maintainer Contact: | recca0120@name.com (recca0120) | 
| Package Create Date: | 2018-01-29 | 
| Package Last Update: | 2024-11-27 | 
| Home Page: | https://socialiteproviders.com/Laravel-Passport/ | 
| Language: | PHP | 
| License: | MIT | 
| Last Refreshed: | 2025-10-28 03:09:53 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 1,077,275 | 
| Monthly Downloads: | 34,233 | 
| Daily Downloads: | 1,691 | 
| Total Stars: | 61 | 
| Total Watchers: | 1 | 
| Total Forks: | 9 | 
| Total Open Issues: | 0 | 
composer require socialiteproviders/laravelpassport
Please see the Base Installation Guide, then follow the provider specific instructions below.
config/services.php'laravelpassport' => [    
  'client_id' => env('LARAVELPASSPORT_CLIENT_ID'),  
  'client_secret' => env('LARAVELPASSPORT_CLIENT_SECRET'),  
  'redirect' => env('LARAVELPASSPORT_REDIRECT_URI'),
  'host' => env('LARAVELPASSPORT_HOST'),
],
Configure the package's listener to listen for SocialiteWasCalled events.
Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\LaravelPassport\LaravelPassportExtendSocialite::class.'@handle',
    ],
];
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('laravelpassport')->redirect();
id
nickname
name
email
avatar