Имам проект 5.2 и системата за удостоверяване работи добре с jenssegers/laravel-mongodb
. Трябва да добавите Jenssegers\Mongodb\Auth\PasswordResetServiceProvider
ако използвате напомняния за пароли.
https://github.com/jenssegers/laravel-mongodb#extensions
Също така, ето моя работещ User.php
, може би ще помогне:
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;