Created
October 25, 2017 08:45
-
-
Save bramnauta/513ca76f4ff7811583fe91372ce6ddab to your computer and use it in GitHub Desktop.
app/User.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Notifications\Notifiable; | |
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 \Jenssegers\Mongodb\Eloquent\Model implements | |
AuthenticatableContract, | |
AuthorizableContract, | |
CanResetPasswordContract | |
{ | |
use Authenticatable, Authorizable, CanResetPassword, Notifiable; | |
/** | |
* The attributes that are mass assignable. | |
* | |
* @var array | |
*/ | |
protected $fillable = [ | |
'name', 'email', 'password', | |
]; | |
/** | |
* The attributes that should be hidden for arrays. | |
* | |
* @var array | |
*/ | |
protected $hidden = [ | |
'password', 'remember_token', | |
]; | |
} |
thanks! It works
This works. Thank you!
it doesnt work for me
this work fine in laravel 5.6
Thank!!
Working for me in lumen 6
You saved my day Bro
Thank you man
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for the solution, it worked.
mongodb/laravel-mongodb#1341