How can i extend user fields with User model like Page Models?
For example that i tried for $user->profile()
but didnt work
class BaseUser extends User
{
public function profile()
{
return page('profiles')->find($this->username());
}
}
How can i extend user fields with User model like Page Models?
For example that i tried for $user->profile()
but didnt work
class BaseUser extends User
{
public function profile()
{
return page('profiles')->find($this->username());
}
}
You canβt.
But you could open an issue at the Kirby repository, maybe that feature can become reality.
If custom blueprints of roles feature release, this issue will solve