forked from mirror/pixelfed
Update Profile model
This commit is contained in:
parent
40d1b5342a
commit
0cc736d109
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ class Profile extends Model
|
||||||
|
|
||||||
protected $visible = ['id', 'username', 'name'];
|
protected $visible = ['id', 'username', 'name'];
|
||||||
|
|
||||||
|
public function user()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(User::class);
|
||||||
|
}
|
||||||
|
|
||||||
public function url($suffix = '')
|
public function url($suffix = '')
|
||||||
{
|
{
|
||||||
return url($this->username . $suffix);
|
return url($this->username . $suffix);
|
||||||
|
|
Loading…
Reference in a new issue