Laravel Socialite provides an expressive, fluent interface to OAuth authentication with Facebook, Twitter, Google, LinkedIn, GitHub, GitLab and Bitbucket. It handles almost all of the boilerplate social authentication code you are dreading writing.
In addition to typical,
Installation via composer
composer require laravel/socialite
Before using Socialite, you will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your
config/services.php configuration file, and should use the key
bitbucket, depending on the providers your application requires. For example:
'github' => [ 'client_id' => env('GITHUB_CLIENT_ID'), 'client_secret' => env('GITHUB_CLIENT_SECRET'), 'redirect' => 'http://your-callback-url', ],