Jeg har 5.2-projekt og auth-system fungerer fint med jenssegers/laravel-mongodb
. Du skal tilføje Jenssegers\Mongodb\Auth\PasswordResetServiceProvider
hvis du bruger påmindelser om adgangskode.
https://github.com/jenssegers/laravel-mongodb#extensions
Her er også min fungerende User.php
, måske vil det hjælpe:
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;