DEV Community

Rohit Urane
Rohit Urane

Posted on

How to implement github login in laravel

Image description
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.

Step by step guide on GitHub login in the laravel application

  • install package in your application Install Socialite package on laravel application. Run the following command.
composer require laravel/socialite
Enter fullscreen mode Exit fullscreen mode
  • 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.

Read More

Discussion (0)