Skip to content

Commit ac5338a

Browse files
authored
Feature/upgrade laravel 10 (#8)
* Upgrade dependêncies to laravel 10 and mongodb-laravel 4.0 * Atualiza modelos e repositórios * Versiona composer.lock * Corrige uso do namespace nos models * Declara corretamente o uso da classe passport * Corrige uso da classe Passport * Comenta array casts para corrigir erro no suporte aos casts na versão do pacote mongo 4.0.2 * Cria classe TokenGuard compatível com assinatura de método setClient local
1 parent bc578ab commit ac5338a

17 files changed

+5954
-305
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*.sublime-workspace
44
.DS_Store
55
.idea/
6-
composer.lock
76
composer.phar
87
phpunit.phar
98
vendor

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,15 @@ class User extends Authenticatable
4141
5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
4242
5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
4343
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x| 1.2.x
44+
8.x | 8.x | 2.1.0
45+
9.x | 9.x, 10.x | 2.2
46+
10.x | 11.x | 3.0.0
4447

4548
And add the service provider in `config/app.php`:
4649

4750
```php
4851
Sysvale\Mongodb\MongodbPassportServiceProvider::class,
4952
```
5053

51-
For usage with [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`.
5254

53-
```php
54-
$app->register(Sysvale\Mongodb\MongodbPassportServiceProvider::class);
55-
```
56-
57-
The service provider will overide the default laravel passport models in order to use mongodb's implementation of eloquent. There is no need to register any additional classes or add any additional configuration other than those outlined in [Laravel Passport](https://github.com/laravel/passport) and [MongoDB](https://github.com/jenssegers/laravel-mongodb).
55+
The service provider will overide the default laravel passport models in order to use mongodb's implementation of eloquent. There is no need to register any additional classes or add any additional configuration other than those outlined in [Laravel Passport](https://github.com/laravel/passport) and [MongoDB](https://github.com/mongodb/laravel-mongodb).

composer.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "sysvale/laravel-mongodb-passport",
3-
"description": "A package to allow laravel/passport use with jenssegers/laravel-mongodb",
3+
"version": "3.0.0",
4+
"description": "A package to allow laravel/passport use with mongodb/laravel-mongodb",
45
"homepage": "https://github.com/Sysvale/laravel-mongodb-passport",
56
"license": "MIT",
67
"keywords": [
@@ -13,21 +14,16 @@
1314
"sysvale"
1415
],
1516
"require": {
16-
"php": ">=7.1",
17-
"illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
18-
"jenssegers/mongodb": "3.3.* || 3.4.* || 3.5.* || 3.6.* || 3.8.* || 3.9.*",
19-
"laravel/passport": "6.0.* || 7.0.* || 7.4.* || 7.5.* || ^8.0 || ^9.0 || ^10"
17+
"php": "^8.1",
18+
"mongodb/laravel-mongodb": "^4.0",
19+
"laravel/passport": "^10 || ^11"
2020
},
2121
"autoload": {
2222
"psr-4": {
2323
"Sysvale\\Mongodb\\": "src"
2424
}
2525
},
2626
"authors": [
27-
{
28-
"name": "DesignMyNight",
29-
"email": "support@designmynight.com"
30-
},
3127
{
3228
"name": "Geidson",
3329
"email": "geidson@sysvale.com"

0 commit comments

Comments
 (0)