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.
engelsystem/db/factories/NewsCommentFactory.php

27 lines
562 B
PHP

<?php
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 */
protected $model = NewsComment::class;
/**
* @return array
*/
public function definition()
{
return [
'news_id' => News::factory(),
'user_id' => User::factory(),
'text' => $this->faker->text(),
];
}
}