Update User model

This commit is contained in:
Daniel Supernault 2018-07-23 18:52:29 -06:00
parent 8f8d099f49
commit 8af22a1fd1

View file

@ -15,7 +15,7 @@ class User extends Authenticatable
* *
* @var array * @var array
*/ */
protected $dates = ['deleted_at']; protected $dates = ['deleted_at', 'email_verified_at'];
/** /**
* The attributes that are mass assignable. * The attributes that are mass assignable.
@ -44,4 +44,9 @@ class User extends Authenticatable
{ {
return url(config('app.url') . '/' . $this->username); return url(config('app.url') . '/' . $this->username);
} }
public function settings()
{
return $this->hasOne(UserSetting::class);
}
} }