Skip to content

Commit

Permalink
feat(requirements): upgrade Lumen to 9.x
Browse files Browse the repository at this point in the history
- Upgrade Lumen to 9.x
- Upgrade other dependencies
- Change jwt-auth library from tymon's to php-open-source-saver one
Fix #21

Refs: #21
  • Loading branch information
aronnebrivio committed Apr 6, 2022
1 parent 5ba1580 commit d0321de
Show file tree
Hide file tree
Showing 6 changed files with 1,865 additions and 1,816 deletions.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Laravel\Lumen\Auth\Authorizable;
use Tymon\JWTAuth\Contracts\JWTSubject;
use PHPOpenSourceSaver\JWTAuth\Contracts\JWTSubject;

class User extends Model implements AuthenticatableContract, AuthorizableContract, JWTSubject
{
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
$app->register(App\Providers\AuthServiceProvider::class);
$app->register(Sentry\Laravel\ServiceProvider::class);
$app->register(Illuminate\Redis\RedisServiceProvider::class);
$app->register(Tymon\JWTAuth\Providers\LumenServiceProvider::class);
$app->register(PHPOpenSourceSaver\JWTAuth\Providers\LumenServiceProvider::class);

/*
|--------------------------------------------------------------------------
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
"license": "MIT",
"type": "project",
"require": {
"php": ">=8.0",
"php": ">=8.0.2",
"doctrine/dbal": "^3.0",
"illuminate/redis": "^8.28",
"laravel/lumen-framework": "^8.0",
"illuminate/redis": "^9.7",
"laravel/lumen-framework": "^9.0",
"sentry/sentry-laravel": "2.*",
"tymon/jwt-auth": "^1.0"
"php-open-source-saver/jwt-auth": "^1.4"
},
"require-dev": {
"captainhook/captainhook": "^5.4",
"codedungeon/phpunit-result-printer": "^0.30.1",
"fakerphp/faker": "^1.9.1",
"friendsofphp/php-cs-fixer": "^2.18",
"friendsofphp/php-cs-fixer": "^3.8",
"mockery/mockery": "^1.3.1",
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "^4.7"
Expand Down
Loading

0 comments on commit d0321de

Please sign in to comment.