Nowadays, Users session is fewer on the website. You want to register a user on your platform. You should simplify the process of registration and login for your application. Laravel provides a socialite package to reduce the process, i.e., In the minimum steps, they connect the user to your application. In this article, we implement GitHub login in laravel.
- install package in your application Install Socialite package on laravel application. Run the following command.
composer require laravel/socialite
- Get Credentials and Configure it For credentials, you need to GitHub account. Click to Setting >> Developer Setting. Click OAuth Apps >> Register a New Application >> Add Details of the application. Generate credentials for your app.