Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: designmynight/laravel-mongodb-passport
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: Sysvale/laravel-mongodb-passport
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 18 commits
  • 20 files changed
  • 1 contributor

Commits on Feb 1, 2022

  1. Copy the full SHA
    efa4efd View commit details

Commits on Feb 2, 2022

  1. Copy the full SHA
    85e75f5 View commit details
  2. Merge pull request #1 from Sysvale/feat/update-to-laravel-8-10

    Feat/update to laravel 8 10
    geidsonc authored Feb 2, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    15851f1 View commit details
  3. update namespace

    geidsonc committed Feb 2, 2022
    Copy the full SHA
    8fbba9d View commit details
  4. Merge pull request #2 from Sysvale/feat/update-to-laravel-8-10

    update namespace
    geidsonc authored Feb 2, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4a9d3cb View commit details
  5. Copy the full SHA
    21e476b View commit details
  6. Merge pull request #3 from Sysvale/feat/update-to-laravel-8-10

    Change project name in composer json
    geidsonc authored Feb 2, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    20f310a View commit details

Commits on Mar 31, 2022

  1. Copy the full SHA
    0359d1b View commit details
  2. Merge pull request #4 from Sysvale/feat/support-token-mongo

    Sobescreve classe TokenRepository para resolver problema com tipos de…
    geidsonc authored Mar 31, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    58becaf View commit details
  3. Copy the full SHA
    cfd5a23 View commit details
  4. Merge pull request #5 from Sysvale/feat/support-token-mongo

    Sobescreve classe TokenRepository para resolver problema com tipos de…
    geidsonc authored Mar 31, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5787083 View commit details

Commits on Mar 31, 2023

  1. Copy the full SHA
    a2779ee View commit details
  2. Merge pull request #6 from Sysvale/feat/purge-command

    Adiciona o comando PurgeCommand e resolve modelo RefreshToken
    geidsonc authored Mar 31, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f4d3e20 View commit details
  3. Ajusta suporte

    geidsonc committed Mar 31, 2023
    Copy the full SHA
    1080b12 View commit details
  4. Merge pull request #7 from Sysvale/feat/purge-command

    Ajusta suporte
    geidsonc authored Mar 31, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d446c92 View commit details

Commits on Jul 19, 2023

  1. Update composer.json

    geidsonc authored Jul 19, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bc578ab View commit details

Commits on Aug 23, 2024

  1. 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
    geidsonc authored Aug 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ac5338a View commit details

Commits on Sep 11, 2024

  1. Ajusta classe Client adicionado função hasGrantType (#9)

    * Ajusta classe Client adicionado função hasGrantType
    
    * Altera versão do compose.json
    geidsonc authored Sep 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7b3ffe5 View commit details
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@
*.sublime-workspace
.DS_Store
.idea/
composer.lock
composer.phar
phpunit.phar
vendor
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -15,18 +15,18 @@ Installation
Installation using composer:

```sh
composer require designmynight/laravel-mongodb-passport
composer require sysvale/laravel-mongodb-passport
```

You need to have your `App\User` class extend `DesignMyNight\Mongodb\Auth\User.php` instead of the default `Illuminate\Foundation\Auth\User`. This user class extends larvel-mongodb eloquent user as well as adding all the standard and required authentication and laravel passport traits.
You need to have your `App\User` class extend `Sysvale\Mongodb\Auth\User.php` instead of the default `Illuminate\Foundation\Auth\User`. This user class extends larvel-mongodb eloquent user as well as adding all the standard and required authentication and laravel passport traits.

```php
<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use DesignMyNight\Mongodb\Auth\User as Authenticatable;
use Sysvale\Mongodb\Auth\User as Authenticatable;

class User extends Authenticatable
{
@@ -41,17 +41,15 @@ class User extends Authenticatable
5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x| 1.2.x

8.x | 8.x | 2.1.0
9.x | 9.x, 10.x | 2.2
10.x | 11.x | 3.0.0

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

```php
DesignMyNight\Mongodb\MongodbPassportServiceProvider::class,
Sysvale\Mongodb\MongodbPassportServiceProvider::class,
```

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

```php
$app->register(DesignMyNight\Mongodb\MongodbPassportServiceProvider::class);
```

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).
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).
25 changes: 12 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "designmynight/laravel-mongodb-passport",
"description": "A package to allow laravel/passport use with jenssegers/laravel-mongodb",
"homepage": "https://github.com/designmynight/laravel-mongodb-passport",
"name": "sysvale/laravel-mongodb-passport",
"version": "3.0.1",
"description": "A package to allow laravel/passport use with mongodb/laravel-mongodb",
"homepage": "https://github.com/Sysvale/laravel-mongodb-passport",
"license": "MIT",
"keywords": [
"laravel",
@@ -10,30 +11,28 @@
"laravel-passport",
"mongodb",
"passport",
"designmynight"
"sysvale"
],
"require": {
"php": ">=7.1",
"illuminate/support": "^5.5 || ^6.0",
"jenssegers/mongodb": "3.3.* || 3.4.* || 3.5.* || 3.6.*",
"laravel/passport": "6.0.* || 7.0.* || 7.4.* || 7.5.* || ^8.0 || ^9.0"
"php": "^8.1",
"mongodb/laravel-mongodb": "^4.0",
"laravel/passport": "^10 || ^11"
},
"autoload": {
"psr-4": {
"DesignMyNight\\Mongodb\\": "src"
"Sysvale\\Mongodb\\": "src"
}
},
"authors": [
{
"name": "DesignMyNight",
"email": "support@designmynight.com",
"role": "Support"
"name": "Geidson",
"email": "geidson@sysvale.com"
}
],
"extra": {
"laravel": {
"providers": [
"DesignMyNight\\Mongodb\\MongodbPassportServiceProvider"
"Sysvale\\Mongodb\\MongodbPassportServiceProvider"
]
}
}
Loading