1
0
Fork 0
forked from mirror/pixelfed

Update Profile model

This commit is contained in:
Daniel Supernault 2018-06-09 17:31:48 -06:00
parent 40d1b5342a
commit 0cc736d109

View file

@ -14,6 +14,11 @@ class Profile extends Model
protected $visible = ['id', 'username', 'name'];
public function user()
{
return $this->belongsTo(User::class);
}
public function url($suffix = '')
{
return url($this->username . $suffix);