PHPackages                             bkstar123/social-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bkstar123/social-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

bkstar123/social-auth
=====================

A thin wrapper of Socialite package for an easy implementation of the social login for Laravel applications

1.0.8(6y ago)17MITPHPPHP ^7.1.3

Since Jun 22Pushed 6y agoCompare

[ Source](https://github.com/bkstar123/laravel-social-auth)[ Packagist](https://packagist.org/packages/bkstar123/social-auth)[ RSS](/packages/bkstar123-social-auth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

laravel-social-auth
===================

[](#laravel-social-auth)

Laravel provides an official package named as Socialite to enable an easy implementation of the social login feature. Although, it is absolutely convenient and simple, it still requires some non trivial piece of code.

Sometimes, the repetitious work can cause an inertia for you to start a new project. To eliminate this issue and quickly gain a momentum for a new idea, this package is built to provide a thin layer wrapping over the Socialite package for the even easier implementation of the social login for a Laravel application.

1 Requirements
--------------

[](#1-requirements)

It is recommended to install this package with PHP version 7.1.3+ and Laravel Framework version 5.5+

2 Installation
--------------

[](#2-installation)

```
composer require bkstar123/social-auth

```

3 Usage
-------

[](#3-usage)

### 3.1 Default usage

[](#31-default-usage)

This package is by default assumed to be used together with the Laravel's default authentication guard (as specified in `config/auth.php`) and `App\User` model.

- Modify Laravel's default user migration **yyyy-mm-dd-xxxxxxxx\_create\_users\_table** to make sure it has the following lines:

```
$table->string('name')->nullable();
$table->string('avatar')->nullable();
$table->string('email')->unique();
$table->string('password')->nullable();
```

**Note**: If you already run the user migration, you should create another migration to update `users` table with the new column `avatar` and set `password` &amp; `name` columns to be nullable (`email`, `name` are already supplied in the Laravel default user migration), for example:

Run: `php artisan make:migration update_users_table`

**yyyy\_mm\_dd\_xxxxxxxx\_update\_users\_table.php**:

```
