16 lines
324 B
PHP
16 lines
324 B
PHP
<?php
|
|
|
|
namespace App\Story;
|
|
|
|
use App\Factory\PostFactory;
|
|
use Zenstruck\Foundry\Story;
|
|
|
|
final class PostStory extends Story
|
|
{
|
|
public function build(): void
|
|
{
|
|
// jumphp:begin build
|
|
PostFactory::createMany(12, static fn (int $i): array => ['slug' => 'post-' . $i]);
|
|
// jumphp:end build
|
|
}
|
|
}
|