mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Add new method to User model
This commit is contained in:
parent
d391b1a2a6
commit
7e78261081
1 changed files with 5 additions and 0 deletions
|
@ -31,4 +31,9 @@ class User extends Authenticatable
|
|||
{
|
||||
return $this->hasOne(Profile::class);
|
||||
}
|
||||
|
||||
public function url()
|
||||
{
|
||||
return url('/' . $this->username);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue