Created
June 17, 2016 09:36
-
-
Save gkimpson/9407d8e404143b1f40edb3b8821290d2 to your computer and use it in GitHub Desktop.
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\Foundation\Auth\User as Authenticatable; | |
use Kodeine\Acl\Traits\HasRole; | |
class User extends Model implements AuthenticatableContract, CanResetPasswordContract | |
{ | |
use Authenticatable, CanResetPassword, HasRole; | |
/** | |
* 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', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment