Download the PHP package akkyoh/socialite_google without Composer
On this page you can find all versions of the php package akkyoh/socialite_google. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akkyoh/socialite_google
More information about akkyoh/socialite_google
Files in akkyoh/socialite_google
Package socialite_google
Short Description Google OAuth2 Provider for Laravel Socialite
License MIT
Informations about the package socialite_google
Google OAuth2 Provider for Laravel Socialite
Install
1. COMPOSER
2. SERVICE PROVIDER
- Remove Laravel\Socialite\SocialiteServiceProvider from your providers[] array in config\app.php if you have added it already.
-
Add \SocialiteProviders\Manager\ServiceProvider::class to your providers[] array in config\app.php.
- If you would like to use the Socialite Facade, you need to install it.
3. ADD THE EVENT AND LISTENERS
- Add SocialiteProviders\Manager\SocialiteWasCalled event to your listen[] array in
/Providers/EventServiceProvider. - Add your listeners (i.e. the ones from the providers) to the SocialiteProviders\Manager\SocialiteWasCalled[] that you just created.
- The listener that you add for this provider is 'Akkyoh\SocialiteGoogle\GoogleExtendSocialite@handle',.
- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
4. ENVIRONMENT VARIABLES
If you add environment values to your .env as exactly shown below, you do not need to add an entry to the services array.
APPEND PROVIDER VALUES TO YOUR .ENV FILE
ADD TO CONFIG/SERVICES.PHP.
You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method
USAGE
You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):