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\User\User;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class NewsFactory extends Factory
|
|
|
|
{
|
|
|
|
/** @var string */
|
2022-12-15 19:50:56 +01:00
|
|
|
protected $model = News::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 [
|
2023-02-13 21:19:45 +01:00
|
|
|
'title' => $this->faker->text(50),
|
|
|
|
'text' => $this->faker->realText(),
|
|
|
|
'is_meeting' => $this->faker->boolean(),
|
|
|
|
'is_pinned' => $this->faker->boolean(.1),
|
|
|
|
'is_important' => $this->faker->boolean(.1),
|
|
|
|
'user_id' => User::factory(),
|
2021-07-10 00:59:20 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|