Commit b89502ed authored by Taylor Otwell's avatar Taylor Otwell

Just use base user by default.

parent 13b79919
...@@ -2,32 +2,25 @@ ...@@ -2,32 +2,25 @@
namespace App; namespace App;
use Illuminate\Auth\Authenticatable; use Illuminate\Foundation\Auth\User as BaseUser;
use Illuminate\Database\Eloquent\Model;
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 Model implements class User extends BaseUser
AuthenticatableContract,
AuthorizableContract,
CanResetPasswordContract
{ {
use Authenticatable, Authorizable, CanResetPassword;
/** /**
* The attributes that are mass assignable. * The attributes that are mass assignable.
* *
* @var array * @var array
*/ */
protected $fillable = ['name', 'email', 'password']; protected $fillable = [
'name', 'email', 'password'
];
/** /**
* The attributes excluded from the model's JSON form. * The attributes excluded from the model's JSON form.
* *
* @var array * @var array
*/ */
protected $hidden = ['password', 'remember_token']; protected $hidden = [
'password', 'remember_token'
];
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment