PHPackages                             stanwarri/larasocialplus - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stanwarri/larasocialplus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stanwarri/larasocialplus
========================

1.0.0.x-dev(10y ago)0341PHP

Since Sep 16Pushed 10y ago2 watchersCompare

[ Source](https://github.com/stanwarri/larasocialplus)[ Packagist](https://packagist.org/packages/stanwarri/larasocialplus)[ RSS](/packages/stanwarri-larasocialplus/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Laravel 5 SocialPlus
--------------------

[](#laravel-5-socialplus)

Installation
------------

[](#installation)

Add this to your `composer.json` file

### Laravel 5.2:

[](#laravel-52)

```
"stanwarri/larasocialplus": "dev-master"
```

### Laravel 5.1:

[](#laravel-51)

```
"stanwarri/larasocialplus": "1.0.0"
```

Service Provider
----------------

[](#service-provider)

Append this to your list of service providers in `config/app.php`

```
'Stanwarri\SocialPlus\SocialPlusServiceProvider'
```

Run the command below

```
$ php artisan vendor:publish --provider="Stanwarri\SocialPlus\SocialPlusServiceProvider"

```

Social Providers
----------------

[](#social-providers)

\[TODO - Extract from socialite\]

Add provider configuration in `config/services.php`

```
"facebook": {
    "client_id": "...",
    "client_secret": "..."
}

```

Handlers
--------

[](#handlers)

Handlers are a way SocialPlus delegates performing custom behaviours in your application

during pre-authorization (authorize request) and post-authorization (callback request).

This is where you may implement your login workflow and whatever.

Handlers are registered in `config/socialplus.php` like so

```
