DEV Community

Rohit Urane
Rohit Urane

Posted on

8 3

How to Implement LinkedIn login in laravel

Image description
According to a research report, nowadays, users' session is shorter on every website. In this case, you can simplify the process of registration and login for your application. The socialite package is the best and mostly used package for social login. It is used to reduce the process. In this article, we implement a LinkedIn login to your application. Are you looking for a Google or Twitter login? you can visit our social login series for your knowledge.

Step by step guide on LinkedIn login in the laravel application

  • Install Socialite Package Let's start with the Install Socialite package on the laravel application. In the terminal, you run the following command:
composer require laravel/socialite
Enter fullscreen mode Exit fullscreen mode

You need to add the below line of code inside the config/app.php file.

$providers= [

    ......
    Laravel\Socialite\SocialiteServiceProvider::class,
    ......
]; 

$alias = [

    ......
    'Socialite' => Laravel\Socialite\Facades\Socialite::class,
    ......
];
Enter fullscreen mode Exit fullscreen mode

Read More

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay