Skip to content

Instantly share code, notes, and snippets.

@gkimpson
Created June 17, 2016 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkimpson/9407d8e404143b1f40edb3b8821290d2 to your computer and use it in GitHub Desktop.
Save gkimpson/9407d8e404143b1f40edb3b8821290d2 to your computer and use it in GitHub Desktop.
<?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