Skip to content

Commit

Permalink
feat: Add Laravel 11 compatibility (#2243)
Browse files Browse the repository at this point in the history
* feat: Add Laravel 11 compatibility

* whoops

* add missing method
  • Loading branch information
tymondesigns authored Mar 2, 2024
1 parent 44982a7 commit 944b1de
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1, 8.2]
laravel: [9.*, 10.*]
php: [8.0, 8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
os: [ubuntu-latest]
coverage: [none]
include:
- php: 8.2
laravel: 10.*
- php: 8.3
laravel: 11.*
os: ubuntu-latest
coverage: xdebug
exclude:
- php: 8.0
laravel: 10.*
- php: 8.0
laravel: 11.*
- php: 8.1
laravel: 11.*

name: '[P${{ matrix.php }}] [L${{ matrix.laravel }}] [${{ matrix.coverage }}]'

Expand Down Expand Up @@ -55,7 +59,7 @@ jobs:
- name: Install dependencies
run: |
composer require "illuminate/contracts:${{ matrix.laravel }}" --no-interaction --no-progress --no-update
composer update --no-progress --prefer-dist --no-interaction --no-suggest
composer update --no-progress --prefer-dist --no-interaction
- name: Execute tests
run: composer test:ci
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| jwt-auth version | Laravel version(s) |
|---|---|
| 1.x | 6 / 7 / 8 |
| 2.x | 9 / 10 |
| 2.x | 9 / 10 / 11 |


[<img src="https://user-images.githubusercontent.com/1801923/57975478-a7a88900-79c1-11e9-924b-d7fa742f743b.png" height="40">](https://www.patreon.com/bePatron?u=11815122)
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
],
"require": {
"php": "^8.0",
"illuminate/auth": "^9.0|^10.0",
"illuminate/contracts": "^9.0|^10.0",
"illuminate/http": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0",
"illuminate/auth": "^9.0|^10.0|^11.0",
"illuminate/contracts": "^9.0|^10.0|^11.0",
"illuminate/http": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"lcobucci/jwt": "^4.0",
"nesbot/carbon": "^2.0"
},
"require-dev": {
"illuminate/console": "^9.0|^10.0",
"illuminate/database": "^9.0|^10.0",
"illuminate/routing": "^9.0|^10.0",
"illuminate/console": "^9.0|^10.0|^11.0",
"illuminate/database": "^9.0|^10.0|^11.0",
"illuminate/routing": "^9.0|^10.0|^11.0",
"mockery/mockery": ">=0.9.9",
"phpunit/phpunit": "^9.4"
},
Expand Down
5 changes: 5 additions & 0 deletions tests/Stubs/LaravelUserStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,9 @@ public function getRememberTokenName()
{
//
}

public function getAuthPasswordName()
{
return 'password';
}
}

1 comment on commit 944b1de

@AbelGoncalo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boas

Please sign in to comment.