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