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/MessageFactory.php

27 lines
587 B
PHTML

<?php
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\Message;
use Engelsystem\Models\User\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class MessageFactory extends Factory
{
/** @var string */
protected $model = Message::class;
/**
* @return array
*/
public function definition()
{
return [
'user_id' => User::factory(),
'receiver_id' => User::factory(),
'read' => $this->faker->boolean(),
'text' => $this->faker->text(),
];
}
}