MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

Usa MongoDB con Laravel 5.3

Ho un progetto 5.2 e il sistema di autenticazione funziona perfettamente con jenssegers/laravel-mongodb . Dovresti aggiungere Jenssegers\Mongodb\Auth\PasswordResetServiceProvider se stai utilizzando i promemoria password.

https://github.com/jenssegers/laravel-mongodb#extensions

Inoltre, ecco il mio User.php funzionante , forse aiuterà:

namespace App;

use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;

class User extends Eloquent implements
    AuthenticatableContract,
    AuthorizableContract,
    CanResetPasswordContract
{
    use Authenticatable, Authorizable, CanResetPassword;