A Laravel session storage interface for the lusitanian/oauth library
composer require superbalist/laravel-lusitanian-oauth-session-store
use App;
use OAuth\ServiceFactory;
use Superbalist\LusitanianOAuth\LaravelTokenSessionStore;
// this example demonstrates creating a github service
$factory = new ServiceFactory();
$store = App::make('session.store');
$storage = new LaravelTokenSessionStore($store);
$credentials = [
'[[github key]]',
'[[github secret]]',
'[[url]]',
];
$gitHub = $factory->createService('GitHub', $credentials, $storage, array('user'));