feat: Reader beginning

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-16 16:15:42 +01:00
parent e90c0a140e
commit 55945adc53
37 changed files with 1057 additions and 47 deletions

View File

@@ -50,12 +50,20 @@ final class MangaFactory extends ModelFactory
$title = self::faker()->words(rand(1, 3), true);
return [
'slug' => $this->slugger->slug($title)->lower(),
'title' => $title,
'description' => self::faker()->text(),
'genres' => self::faker()->words(rand(1, 5)),
'publicationYear' => self::faker()->year(),
'rating' => self::faker()->randomFloat(1, 0, 10),
'slug' => $this->slugger->slug($title)->lower(),
'imageUrl' => self::faker()->optional()->imageUrl(),
'publicationYear' => self::faker()->optional()->year(),
'description' => self::faker()->optional()->text(),
'genres' => self::faker()->optional()->words(rand(1, 5)),
'createdAt' => \DateTimeImmutable::createFromMutable(self::faker()->dateTime()),
'rating' => self::faker()->optional()->randomFloat(1, 0, 10),
'author' => self::faker()->optional()->name(),
'externalId' => self::faker()->optional()->uuid(),
'status' => self::faker()->optional()->randomElement(['ongoing', 'completed', 'hiatus']),
'thumbnailUrl' => self::faker()->optional()->imageUrl(150, 150),
'monitored' => self::faker()->boolean(),
'AlternativeSlugs' => self::faker()->optional()->words(3),
];
}