PHP code example of socialiteproviders / line

1. Go to this page and download the library: Download socialiteproviders/line 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/ */

    

socialiteproviders / line example snippets


'line' => [    
  'client_id' => env('LINE_CLIENT_ID'),  
  'client_secret' => env('LINE_CLIENT_SECRET'),  
  'redirect' => env('LINE_REDIRECT_URI'),
  'bot_prompt' => env('LINE_BOT_PROMPT', 'normal'),
],

Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('line', \SocialiteProviders\Line\Provider::class);
});

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\Line\LineExtendSocialite::class.'@handle',
    ],
];

return Socialite::driver('line')->redirect();