From 3f8419e53a1df3b39ec1b4ee36b034f74d68a807 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Sat, 23 Jun 2018 01:23:21 +0800 Subject: [PATCH] updated provider --- .gitlab-ci.sh | 4 +--- config/app.php | 7 ++++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.sh b/.gitlab-ci.sh index 26e4307f..e5555711 100644 --- a/.gitlab-ci.sh +++ b/.gitlab-ci.sh @@ -27,11 +27,10 @@ pecl install xdebug && docker-php-ext-enable xdebug # Generate an application key. Re-cache. php artisan key:generate -# php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider" +php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider" php artisan jwt:secret php artisan config:cache php artisan config:clear -# php artisan optimize // remove after laravel 5.6 # Run database migrations with seeder php artisan migrate:refresh --seed @@ -39,7 +38,6 @@ php artisan migrate:refresh --seed # clear class map php artisan clear-compiled composer dump-autoload -# php artisan optimize diff --git a/config/app.php b/config/app.php index a5c9e580..a23824d1 100644 --- a/config/app.php +++ b/config/app.php @@ -170,6 +170,7 @@ return [ App\Providers\RouteServiceProvider::class, Tymon\JWTAuth\Providers\LaravelServiceProvider::class, + Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class, ], /* @@ -220,9 +221,9 @@ return [ 'View' => Illuminate\Support\Facades\View::class, 'Html' => Collective\Html\HtmlFacade::class, 'Entrust' => Zizaco\Entrust\EntrustFacade::class, - - 'JWTAuth' => 'Tymon\JWTAuth\Facades\JWTAuth', - 'JWTFactory' => 'Tymon\JWTAuth\Facades\JWTFactory', + 'JWTAuth' => Tymon\JWTAuth\Facades\JWTAuth::class, + 'JWTFactory' => Tymon\JWTAuth\Facades\JWTFactory::class, + ], ];