feat: Reader beginning
This commit is contained in:
parent
e90c0a140e
commit
55945adc53
@@ -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),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user