1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Add new method to User model

This commit is contained in:
Daniel Supernault 2018-04-18 23:57:31 -06:00
parent d391b1a2a6
commit 7e78261081

View file

@ -31,4 +31,9 @@ class User extends Authenticatable
{
return $this->hasOne(Profile::class);
}
public function url()
{
return url('/' . $this->username);
}
}