diff --git a/examples/laravel-api/composer.json b/examples/laravel-api/composer.json index 061033da..a9337d3b 100644 --- a/examples/laravel-api/composer.json +++ b/examples/laravel-api/composer.json @@ -8,7 +8,7 @@ "laravel/framework": "5.0.*", "adoy/oauth2": "dev-master", "firebase/php-jwt" : "dev-master", - "auth0/login": "dev-master" + "auth0/login": "~2.1" }, "require-dev": { "phpunit/phpunit": "~4.0", diff --git a/src/Auth0/Login/LoginServiceProvider.php b/src/Auth0/Login/LoginServiceProvider.php index bf189cc5..bcbeaabb 100644 --- a/src/Auth0/Login/LoginServiceProvider.php +++ b/src/Auth0/Login/LoginServiceProvider.php @@ -1,9 +1,12 @@ publishes([ __DIR__.'/../../config/config.php' => config_path('laravel-auth0.php'), ]); + + $laravel = app(); + ApiClient::addHeaderInfoMeta('Laravel:'.$laravel::VERSION); + ApiClient::addHeaderInfoMeta('SDK:'.self::SDK_VERSION); } /**