add name translation wiki-section

This commit is contained in:
amazuecos
2025-03-02 13:44:10 +01:00
parent 18700b6c96
commit 24412c63ca
10 changed files with 76 additions and 15 deletions

View File

@ -17,13 +17,17 @@ class WikiSectionEntity extends Entity
"parent_id" => null
];
protected $casts = [
"name" => "string",
"slug" => "string",
"role" => "string",
"icon" => "string",
"order" => "int",
"parent_id" => "int"
];
public function getName() : object
{
return json_decode($this->attributes['name']);
}
public function withPage(): self
{