Difference between revisions of "Creating User model to work with MongoDB"
Jump to navigation
Jump to search
(Created page with "Source: https://stackoverflow.com/questions/37323300/laravel-authentication-and-jenssegers-mongodb-not-working <pre> use Jenssegers\Mongodb\Eloquent\Model as Eloquent; use Il...") |
|||
| Line 2: | Line 2: | ||
<pre> | <pre> | ||
| + | <?php | ||
| + | |||
| + | namespace App; | ||
| + | |||
use Jenssegers\Mongodb\Eloquent\Model as Eloquent; | use Jenssegers\Mongodb\Eloquent\Model as Eloquent; | ||
use Illuminate\Auth\Authenticatable; | use Illuminate\Auth\Authenticatable; | ||
Revision as of 04:48, 5 August 2019
<?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;
}