mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-01 10:43:16 +00:00
Update User model
This commit is contained in:
parent
8f8d099f49
commit
8af22a1fd1
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue