Skip to content

Commit

Permalink
Support Laravel Sanctum ^3.0 (#84)
Browse files Browse the repository at this point in the history
* Support Laravel Sanctum ^3.0

* Fix GitHub Action Normalize

* Fix UserHasApiTokensIdentifiedByUsernameFactory

* Update README.md
  • Loading branch information
daniel-de-wit authored Aug 4, 2022
1 parent 8f25842 commit 82ef2d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run-composer-normalize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- name: Normalize composer.json
run: |
composer global require ergebnis/composer-normalize
composer config --no-plugins allow-plugins.ergebnis/composer-normalize true
composer normalize
- uses: stefanzweifel/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Add [Laravel Sanctum](https://github.com/laravel/sanctum) support to [Lighthouse
## Requirements

- [laravel/laravel:^9.0](https://github.com/laravel/laravel)
- [laravel/sanctum:^2.0](https://github.com/laravel/sanctum)
- [laravel/sanctum:^2.0 || ^3.0](https://github.com/laravel/sanctum)
- [nuwave/lighthouse:^5.55.1](https://github.com/nuwave/lighthouse)

## Installation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require": {
"php": "^8.0.2",
"laravel/framework": "^9.0",
"laravel/sanctum": "^2.14",
"laravel/sanctum": "^2.14 || ^3.0",
"nuwave/lighthouse": "^5.55.1"
},
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace DanielDeWit\LighthouseSanctum\Tests\stubs\Users;

use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use Orchestra\Testbench\Factories\UserFactory;

class UserHasApiTokensIdentifiedByUsernameFactory extends Factory
class UserHasApiTokensIdentifiedByUsernameFactory extends UserFactory
{
protected $model = UserHasApiTokensIdentifiedByUsername::class;

Expand Down

0 comments on commit 82ef2d3

Please sign in to comment.