21 lines
No EOL
412 B
PHP
21 lines
No EOL
412 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Post;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class CommentFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'content' => fake()->paragraph(),
|
|
'post_id' => Post::factory(),
|
|
'author_id' => User::factory(),
|
|
];
|
|
}
|
|
}
|