actuel-inactuel/site/models/author.php

8 lines
193 B
PHP
Raw Normal View History

2024-10-16 08:53:53 +02:00
<?php
class AuthorPage extends Page {
public function getTexts() {
return page('textes')->index()->filter(function($text) {
return $text->author()->toPage() === $this;
});
}
}