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
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.
22
+
23
+
```
24
+
<?php
25
+
26
+
namespace App;
27
+
28
+
use Illuminate\Notifications\Notifiable;
29
+
use StevePorter92\Mongodb\Auth\User as Authenticatable;
30
+
31
+
class User extends Authenticatable
32
+
{
33
+
use Notifiable;
34
+
}
35
+
```
36
+
21
37
### Laravel version Compatibility
22
38
23
39
Laravel | Package
@@ -36,4 +52,4 @@ For usage with [Lumen](http://lumen.laravel.com), add the service provider in `b
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/jenssegers/laravel-mongodb).
0 commit comments