API-Route to new global variables
This commit is contained in:
@@ -101,6 +101,6 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
public function getNicename() : string {
|
||||
return $this->nickname !== '' ? $this->nickname : $this->firstname;
|
||||
return $this->nickname ?? $this->firstname;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user