1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-01-22 23:09:41 +00:00

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
*/
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);
}
}