DEV Community

Rohit Urane
Rohit Urane

Posted on

How To Implement Bitbucket Login In Laravel

Image description

According to a research report, users' session is shorter on every website nowadays. In this case, you can simplify the registration and login process for your application. The socialite package is the best and primarily used package for social login. It is used to reduce the process. In this article, we implement a Bitbucket login to your application.

Step by step guide on Bitbucket login in the laravel application

  • Install Socialite Package Install Socialite package on laravel application. 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 app.php file.

$providers= [

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

$alias = [

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

Read More

Top comments (0)