You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
640 B
PHP
28 lines
640 B
PHP
<?php
|
|
|
|
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 */
|
|
protected $model = News::class;
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'title' => $this->faker->text(50),
|
|
'text' => $this->faker->realText(),
|
|
'is_meeting' => $this->faker->boolean(),
|
|
'is_pinned' => $this->faker->boolean(.1),
|
|
'user_id' => User::factory(),
|
|
];
|
|
}
|
|
}
|