kopia lustrzana https://github.com/pixelfed/pixelfed
Add new method to User model
rodzic
d391b1a2a6
commit
7e78261081
|
@ -31,4 +31,9 @@ class User extends Authenticatable
|
||||||
{
|
{
|
||||||
return $this->hasOne(Profile::class);
|
return $this->hasOne(Profile::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function url()
|
||||||
|
{
|
||||||
|
return url('/' . $this->username);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue