2021-07-10 00:59:20 +02:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-07-10 00:59:20 +02:00
|
|
|
namespace Database\Factories\Engelsystem\Models;
|
|
|
|
|
|
|
|
use Engelsystem\Models\News;
|
|
|
|
use Engelsystem\Models\NewsComment;
|
|
|
|
use Engelsystem\Models\User\User;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class NewsCommentFactory extends Factory
|
|
|
|
{
|
|
|
|
/** @var string */
|
2022-12-15 19:50:56 +01:00
|
|
|
protected $model = NewsComment::class; // phpcs:ignore
|
2021-07-10 00:59:20 +02:00
|
|
|
|
2022-12-14 19:15:20 +01:00
|
|
|
public function definition(): array
|
2021-07-10 00:59:20 +02:00
|
|
|
{
|
|
|
|
return [
|
|
|
|
'news_id' => News::factory(),
|
|
|
|
'user_id' => User::factory(),
|
|
|
|
'text' => $this->faker->text(),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|