finish author system

This commit is contained in:
isUnknown 2024-10-16 08:53:53 +02:00
parent db8669d30d
commit fe6e01acdf
38 changed files with 614 additions and 73 deletions

8
site/models/author.php Normal file
View file

@ -0,0 +1,8 @@
<?php
class AuthorPage extends Page {
public function getTexts() {
return page('textes')->index()->filter(function($text) {
return $text->author()->toPage() === $this;
});
}
}