You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A service provider to add support for [Laravel Passport](https://github.com/laravel/passport) and [MongoDB](https://github.com/jenssegers/laravel-mongodb).
You need to have your `App\User` class extend `StevePorter92\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.
21
+
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.
22
22
23
23
```
24
24
<?php
25
25
26
26
namespace App;
27
27
28
28
use Illuminate\Notifications\Notifiable;
29
-
use StevePorter92\Mongodb\Auth\User as Authenticatable;
29
+
use DesignMyNight\Mongodb\Auth\User as Authenticatable;
30
30
31
31
class User extends Authenticatable
32
32
{
@@ -43,13 +43,13 @@ class User extends Authenticatable
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).
0 commit comments