PHP code example of pepperfm / donationalerts-auth-for-laravel
1. Go to this page and download the library: Download pepperfm/donationalerts-auth-for-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pepperfm / donationalerts-auth-for-laravel example snippets
'donationalerts' => [
'client_id' => env('DA_CLIENT_ID'),
'client_secret' => env('DA_CLIENT_SECRET'),
'redirect' => env('DA_REDIRECT_URI')
],
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
$event->extendSocialite('donationalerts', \Pepperfm\DonationalertsAuth\Provider::class);
});
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
\Pepperfm\DonationalertsAuth\DonationAlertsExtendSocialite::class.'@handle',
],
];
return Socialite::driver('donationalerts')->redirect();